Skip to content

Commit

Permalink
undo past changes in Select component
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader committed Jul 26, 2023
1 parent 3920f16 commit bc15bbc
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions components/src/forms/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import ReactSelect, {
import cx from 'classnames'

import { Icon } from '../icons'
import { Box } from '../primitives'
import { SPACING } from '../ui-style-constants'
import { POSITION_ABSOLUTE, POSITION_FIXED } from '../styles'
import styles from './Select.css'

Expand Down Expand Up @@ -115,20 +113,13 @@ function DropdownIndicator(
): JSX.Element {
return (
<reactSelectComponents.DropdownIndicator {...props}>
<Box
position={POSITION_ABSOLUTE}
top="0.25rem"
right={SPACING.spacing8}
width={SPACING.spacing20}
<div
className={cx(styles.dropdown_indicator, {
[styles.flipped]: props.selectProps.menuIsOpen,
})}
>
<Icon
name="menu-down"
transform={`rotate(${
props.selectProps.menuIsOpen === true ? '180' : '0'
})`}
height="1.25rem"
/>
</Box>
<Icon name="menu-down" className={cx(styles.dropdown_indicator_icon)} />
</div>
</reactSelectComponents.DropdownIndicator>
)
}
Expand Down

0 comments on commit bc15bbc

Please sign in to comment.