Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
feat: Better support for <Select multiple> (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikras authored and gregberge committed Jun 12, 2018
1 parent 19349c0 commit 9d5b290
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const SelectComponent = ({
className,
)}
>
{arrow ? (
{arrow && !props.multiple ? (
<svg className="sui-select-arrow" viewBox="0 0 10 5">
<g fill="none" fillRule="evenodd">
<path d="M17 14H-7v-24h24" />
Expand Down Expand Up @@ -84,7 +84,7 @@ const Select = styled(SelectRefComponent)`
line-height: ${th('lineHeightBase')};
transition: ${th('transitionBase')};
color: ${th('inputTextColor')};
padding-right: 1.6rem;
${props => props.arrow && !props.multiple && 'padding-right: 1.6rem;'};
&:focus {
${mixin('controlFocus')};
Expand All @@ -109,7 +109,7 @@ const Select = styled(SelectRefComponent)`
padding: ${th('inputPaddingYSm')} ${th('inputPaddingXSm')};
font-size: ${th('fontSizeSm')};
border-radius: ${th('borderRadiusSm')};
padding-right: 1.225rem;
${props => props.arrow && !props.multiple && 'padding-right: 1.225rem;'};
}
.sui-select-arrow {
Expand All @@ -123,7 +123,7 @@ const Select = styled(SelectRefComponent)`
padding: ${th('inputPaddingYLg')} ${th('inputPaddingXLg')};
font-size: ${th('fontSizeLg')};
border-radius: ${th('borderRadiusLg')};
padding-right: 2rem;
${props => props.arrow && !props.multiple && 'padding-right: 2rem;'};
}
.sui-select-arrow {
Expand Down

0 comments on commit 9d5b290

Please sign in to comment.