Skip to content

Commit

Permalink
fix(List, Menu): [juno-core] fix list item focus inside issue with mu…
Browse files Browse the repository at this point in the history
…i focus-visible issue
  • Loading branch information
ZouYouShun committed Sep 12, 2024
1 parent 5fbbe9b commit 985231b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,22 @@ export const sharedListItemStyle: RcThemedStyled<
background-color: ${setAlpha(baseColor, 0.05)};
`};
&.${
// mui focus visible have issue in old version, we use the focus-visible polyfill class to do that
// that for menuItem, because in current version of menuItem that not support focused classes
// TODO: that can be remove after upgrade to V5
mainClasses.focusVisible
},
&.Mui-focusVisible {
background-color: unset;
}
${
// that for menuItem, because in current version of menuItem that not support focused classes
// TODO: that can be remove after upgrade to V5
focusVisible
},
&.${mainClasses.focusVisible} {
} {
background-color: ${() => {
// to override mui focus visible style when item is highlighted
if (useFocusRing && highlighted) {
Expand Down
2 changes: 1 addition & 1 deletion sync-github.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"latestCommitSHA": "c2e94d441bd943056e5be88c9a632ebbece64ad5"
"latestCommitSHA": "c3dd213f2453d6bca230cd0950fb2861ee42037e"
}

0 comments on commit 985231b

Please sign in to comment.