Skip to content

Commit

Permalink
Restore default focus styling.
Browse files Browse the repository at this point in the history
  • Loading branch information
heinvv committed May 15, 2024
1 parent 60c740b commit 4e1c239
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
27 changes: 0 additions & 27 deletions assets/scss/reset/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,29 +78,6 @@ button,
-webkit-appearance: button;
}

/**
* Remove the inner border and padding in Firefox.
*/

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}

/**
* Restore the focus styles unset by the previous rule.
*/

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}

button,
[type="submit"],
[type="button"] {
Expand All @@ -117,10 +94,6 @@ button,
border-radius: $border-radius;
transition: all .3s;

&:focus {
outline: 5px auto -webkit-focus-ring-color;
}

&:hover,
&:focus {
color: #ffffff;
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/reset/_reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ a {
text-decoration: none;
}

&:not([href]):not([tabindex]):focus {
&:not([href]):not([tabindex]):focus:not(:focus-visible) {
outline: 0;
}
}
Expand Down

0 comments on commit 4e1c239

Please sign in to comment.