Skip to content

Commit

Permalink
fix: focus-visible shouldn't change background styles (#7113)
Browse files Browse the repository at this point in the history
Only set background:none focus styles on menu
  • Loading branch information
acmertz authored Mar 9, 2021
1 parent 6336e57 commit 1b52e7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/css/components/menu/_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@
color: $primary-background-color;
}

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

.vjs-menu li.vjs-menu-title {
text-align: center;
text-transform: uppercase;
Expand Down
5 changes: 1 addition & 4 deletions src/css/video-js.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,8 @@
// The rule is needed for :focus-visible polyfill
.js-focus-visible .video-js *:focus:not(.focus-visible) {
outline: none;
background: none;
}

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

0 comments on commit 1b52e7b

Please sign in to comment.