Skip to content

Commit

Permalink
fix: incorrect focus styles on selected MenuItem (#7202)
Browse files Browse the repository at this point in the history
Adds a :not() pseudo class to ensure that the MenuItem background color doesn't get incorrectly reset on mouse focus.

Fixes #7200
  • Loading branch information
acmertz authored May 11, 2021
1 parent e9953e5 commit 06cdb6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/css/components/menu/_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
color: $primary-background-color;
}

.video-js .vjs-menu *:focus:not(:focus-visible),
.js-focus-visible .vjs-menu *:focus:not(.focus-visible) {
.video-js .vjs-menu *:not(.vjs-selected):focus:not(:focus-visible),
.js-focus-visible .vjs-menu *:not(.vjs-selected):focus:not(.focus-visible) {
background: none;
}

Expand Down

0 comments on commit 06cdb6f

Please sign in to comment.