Skip to content

Commit

Permalink
feat: Restore all outlines for greater accessibility (#3829)
Browse files Browse the repository at this point in the history
Restore all outlines on components that are focusable to increase accessibility of these components.

BREAKING CHANGE: restoring the outlines changes the skin slightly and potentially break users. Fixes #3200.
  • Loading branch information
misteroneill authored and gkatsev committed Jan 18, 2017
1 parent 57af15c commit 29ffbfb
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/css/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
Expand Down
1 change: 0 additions & 1 deletion src/css/components/_big-play.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@

.video-js:hover .vjs-big-play-button,
.video-js .vjs-big-play-button:focus {
outline: 0;
border-color: $primary-foreground-color;

@include background-color-with-alpha($secondary-background-color, $secondary-background-transparency);
Expand Down
1 change: 0 additions & 1 deletion src/css/components/_control.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// It's used on both real buttons (play button)
// and div buttons (menu buttons)
.video-js .vjs-control {
outline: none;
position: relative;
text-align: center;
margin: 0;
Expand Down
1 change: 0 additions & 1 deletion src/css/components/_slider.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.video-js .vjs-slider {
outline: 0;
position: relative;
cursor: pointer;
padding: 0;
Expand Down
1 change: 0 additions & 1 deletion src/css/components/menu/_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@

.vjs-menu li.vjs-menu-item:focus,
.vjs-menu li.vjs-menu-item:hover {
outline: 0;
@include background-color-with-alpha($secondary-background-color, $secondary-background-transparency);
}

Expand Down

0 comments on commit 29ffbfb

Please sign in to comment.