Skip to content

Commit

Permalink
Add border props to select
Browse files Browse the repository at this point in the history
  • Loading branch information
xdrdak committed Oct 17, 2019
1 parent 220f930 commit 6d3ff8b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/flame/src/Select/Select.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import styled from '@emotion/styled';
import { layout, LayoutProps } from 'styled-system';
import { layout, LayoutProps, compose } from 'styled-system';
import { themeGet } from '@styled-system/theme-get';
import { border, BorderProps } from '../Core';

export type SelectProps = React.SelectHTMLAttributes<HTMLSelectElement>;

export const Select = styled('select')<Omit<LayoutProps, 'size'>>`
export const Select = styled('select')<Omit<LayoutProps, 'size'> & BorderProps>`
width: 100%;
color: ${themeGet('selectStyles.color')};
font-size: ${themeGet('fontSizes.text-s')};
Expand Down Expand Up @@ -48,5 +49,8 @@ export const Select = styled('select')<Omit<LayoutProps, 'size'>>`
color: transparent;
text-shadow: 0 0 0 ${themeGet('selectStyles.color')};
}
${layout}
${compose(
layout,
border,
)}
`;

0 comments on commit 6d3ff8b

Please sign in to comment.