This repository was archived by the owner on Mar 4, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
packages/react/src/themes/teams/components/Dropdown Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change 1
1
import { ComponentSlotStylesInput , ICSSInJSStyle } from '../../../types'
2
2
import { DropdownVariables } from './dropdownVariables'
3
3
import { DropdownItemProps } from '../../../../components/Dropdown/DropdownItem'
4
- import ListItem from '../../../../components/List/ListItem'
5
4
6
5
const dropdownItemStyles : ComponentSlotStylesInput < DropdownItemProps , DropdownVariables > = {
7
- root : ( { variables : v , props : { active } } ) : ICSSInJSStyle => ( {
8
- [ `&.${ ListItem . className } ` ] : {
9
- backgroundColor : v . listItemBackgroundColor ,
10
- whiteSpace : 'nowrap' ,
11
- } ,
12
-
13
- ...( active && {
14
- [ `&.${ ListItem . className } ` ] : {
15
- backgroundColor : v . listItemBackgroundColorActive ,
16
- color : v . listItemColorActive ,
17
- } ,
6
+ root : ( { props : p , variables : v } ) : ICSSInJSStyle => ( {
7
+ whiteSpace : 'nowrap' ,
8
+ backgroundColor : v . listItemBackgroundColor ,
9
+ ...( p . active && {
10
+ color : v . listItemColorActive ,
11
+ backgroundColor : v . listItemBackgroundColorActive ,
18
12
} ) ,
19
13
} ) ,
20
14
}
You can’t perform that action at this time.
0 commit comments