Skip to content

Commit

Permalink
🐛 Fix outline styles for Button/Select
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbarbara committed Jan 13, 2019
1 parent f4ca17f commit 5278173
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/Button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ import PropTypes from 'prop-types';
import styled, { css } from 'styled-components';

import { getColor, getStyles, getTheme, isDefined, px } from './utils/helpers';
import { baseStyles, buttonPropTypes, sizesAllPropTypes, variantPropTypes } from './utils/system';
import {
baseStyles,
buttonPropTypes,
outlines,
sizesAllPropTypes,
variantPropTypes,
} from './utils/system';

import Badge from './Badge';
import Box, { basePropTypes } from './Box';
Expand Down Expand Up @@ -40,6 +46,7 @@ const Button = styled(Box)`
&:focus {
outline-color: ${getColor};
${outlines}
}
${Badge} {
Expand Down
3 changes: 2 additions & 1 deletion src/Select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
import styled, { css } from 'styled-components';

import { getDimmerColor, getTheme, isDefined, lighten, px } from './utils/helpers';
import { formPseudo, sizesPropTypes } from './utils/system';
import { formPseudo, outlines, sizesPropTypes } from './utils/system';

import Box, { basePropTypes } from './Box';

Expand Down Expand Up @@ -99,6 +99,7 @@ Select.propTypes = {
sizing: sizesPropTypes,
valid: PropTypes.bool,
...basePropTypes,
...outlines.propTypes,
};

Select.defaultProps = {
Expand Down

0 comments on commit 5278173

Please sign in to comment.