Skip to content

Commit

Permalink
List: Fix HC theme in storybook (#33272)
Browse files Browse the repository at this point in the history
  • Loading branch information
george-cz authored Dec 4, 2024
1 parent 7e7c653 commit b8e725b
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ const useStyles = makeStyles({
},
itemSelected: {
backgroundColor: tokens.colorSubtleBackgroundSelected,
'@media (forced-colors:active)': {
background: 'Highlight',
},
},
personaSelected: {
'@media (forced-colors:active)': {
forcedColorAdjust: 'none',
color: 'HighlightText',
},
},
});

Expand Down Expand Up @@ -82,6 +91,7 @@ export const ListActiveElement = () => {
role="gridcell"
secondaryText="Available"
presence={{ status: 'available' }}
className={mergeClasses(selectedItems.includes(name) && classes.personaSelected)}
avatar={{
image: {
src: avatar,
Expand Down

0 comments on commit b8e725b

Please sign in to comment.