mirror of
https://github.com/videojs/video.js.git
synced 2025-01-19 10:54:16 +02:00
fix: focus-visible shouldn't change background styles (#7113)
Only set background:none focus styles on menu
This commit is contained in:
parent
6336e573f2
commit
1b52e7bea0
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user