Skip to content

Commit

Permalink
update dropdown styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Kellerstein committed Nov 16, 2021
1 parent 7abc009 commit ff2704b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ export const dropdownItemStyles: ComponentSlotStylesPrepared<DropdownItemStylesP
...(!p.isFromKeyboard && {
color: v.listItemColorHover,
backgroundColor: v.listItemBackgroundColorHover,
[`& .${dropdownItemSlotClassNames.checkableIndicator}`]: {
backgroundImage: checkableIndicatorUrl(v.listItemColorHover),
},
...(p.hasHeader && {
[`& .${dropdownItemSlotClassNames.header}`]: {
color: v.listItemColorHover,
Expand Down Expand Up @@ -72,8 +69,11 @@ export const dropdownItemStyles: ComponentSlotStylesPrepared<DropdownItemStylesP
fontSize: v.listItemContentFontSize,
color: v.listItemContentColor,
}),
checkableIndicator: ({ variables: v }) => ({
checkableIndicator: ({ props: p, variables: v }) => ({
backgroundImage: checkableIndicatorUrl(v.listItemSelectedColor),
...(p.active && {
backgroundImage: checkableIndicatorUrl(v.listItemColorHover),
}),
backgroundPosition: 'center',
backgroundRepeat: 'no-repeat',
position: 'absolute',
Expand Down

0 comments on commit ff2704b

Please sign in to comment.