Skip to content

Commit

Permalink
[A11Y] Adds missing focus rings back to control elements (#3016)
Browse files Browse the repository at this point in the history
* Remove the stuff that removes critical accessibility features

* Remove no outline from basic blade layout

* Remove focus outline from FormControls
  • Loading branch information
davwheat authored Sep 13, 2021
1 parent b0bc021 commit c10a30b
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 13 deletions.
6 changes: 0 additions & 6 deletions less/common/Button.less
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@
&.active,
.open > &.Dropdown-toggle {
.box-shadow(inset 0 3px 5px rgba(0, 0, 0, .125));
outline: none;
}

&:focus,
&.focus {
outline: none;
}

&.disabled,
Expand Down
3 changes: 0 additions & 3 deletions less/common/Dropdown.less
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@
&:hover {
background: @control-bg;
}
&:focus {
outline: none;
}
}
&.active {
> a, > button {
Expand Down
4 changes: 2 additions & 2 deletions less/common/FormControl.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
transition: var(--transition);
-webkit-appearance: none;

&:focus,
&.focus {
&:focus {
background-color: @body-bg;
color: @text-color;
border-color: @primary-color;
Expand Down Expand Up @@ -44,6 +43,7 @@
font-size: 16px; // minimum font-size required to prevent page zoom on focus in iOS 10
}
}

.helpText {
font-size: 12px;
line-height: 1.5em;
Expand Down
1 change: 0 additions & 1 deletion less/common/Search.less
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
.Button {
float: left;
margin-left: -36px;
outline: none;
width: 36px !important;

&.LoadingIndicator {
Expand Down
1 change: 0 additions & 1 deletion views/layouts/basic.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
.form-control:focus,
.form-control.focus {
border-color: {{ $primaryColor }};
outline: none;
}
.errors {
color: #d83e3e;
Expand Down

0 comments on commit c10a30b

Please sign in to comment.