mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-10 21:01:41 +00:00
🎨 Enhance :focus style for a11y
* Adding link changes with text-decoration and background * Update assets/css/base/_a.scss Co-Authored-By: EJ Mason <eliasjmason@gmail.com> * Add SCSS variable Co-authored-by: Conlin Durbin <conlin@lessonly.com> Co-authored-by: EJ Mason <eliasjmason@gmail.com> Co-authored-by: Tatiana Mac <github@tatianamac.com>
This commit is contained in:
@ -1,16 +1,18 @@
|
||||
a {
|
||||
border-bottom: $dark-grey solid 0.1em;
|
||||
color: $black;
|
||||
font-family: $ext-sans;
|
||||
margin: 1rem 0;
|
||||
text-decoration: none;
|
||||
text-decoration-color: $dark-grey;
|
||||
text-decoration-line: underline;
|
||||
text-decoration-thickness: 0.1em;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
border-bottom: $primary-color solid 0.1rem;
|
||||
text-decoration-color: $primary-color;
|
||||
}
|
||||
&:focus {
|
||||
outline: pxToRem(3) solid $primary-color;
|
||||
outline-offset: pxToRem(5);
|
||||
background-color: $lt-background-color;
|
||||
color: $black;
|
||||
outline: 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user