Skip to content

Commit

Permalink
fix(odyssey-react-mui): make Autocomplete option focus a11y-compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
edburyenegren-okta committed Aug 15, 2023
1 parent de1547d commit 40e6957
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/odyssey-react-mui/src/theme/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,14 @@ export const components = (
[`&[aria-selected="true"]`]: {
backgroundColor: "transparent",
color: odysseyTokens.TypographyColorAction,

[`&:hover`]: {
backgroundColor: odysseyTokens.PalettePrimaryLighter,
},

[`&.${autocompleteClasses.focused}`]: {
backgroundColor: odysseyTokens.PalettePrimaryLighter,
},
},
},
},
Expand Down

0 comments on commit 40e6957

Please sign in to comment.