Skip to content

Commit

Permalink
fix: incorrect focus styles on selected MenuItem
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 videojs#7200
  • Loading branch information
acmertz committed Apr 22, 2021
1 parent 17919ce commit 5d83d4b
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 5d83d4b

Please sign in to comment.