Skip to content

Commit

Permalink
feat (accessibility) : FOCUS styles (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
codexarama committed May 19, 2021
1 parent 4c8f394 commit 8f7e317
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
6 changes: 3 additions & 3 deletions sass/base/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ nav {

&:focus {
outline: none;
box-shadow: 0 0 0 2px white, 0 0 0 4px $primaire-bg;
box-shadow: 0 0 0 2px white, 0 0 0 4px $secondaire-bg;
}
}

Expand All @@ -60,7 +60,7 @@ nav {

&:focus {
outline: none;
box-shadow: 0 0 0 2px white, 0 0 0 4px $primaire-bg;
box-shadow: 0 0 0 2px white, 0 0 0 4px $secondaire-a;
}
}

Expand All @@ -72,7 +72,7 @@ nav {

&:focus {
outline: none;
box-shadow: 0 0 0 2px white, 0 0 0 4px $primaire-bg;
box-shadow: 0 0 0 2px white, 0 0 0 4px $secondaire-a;
}
}
}
Expand Down
9 changes: 8 additions & 1 deletion sass/layout/_filter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@
margin: 50px 0;

&__title {
margin: 10px 10px 0 0;
padding: 10px 10px 0 0;
border-radius: 3px;
&:focus {
padding: 10px 10px 0 10px;
margin-left: -10px;
outline: none;
box-shadow: 0 0 0 2px white, 0 0 0 4px $secondaire-a;
}
}

&__box {
Expand Down
8 changes: 8 additions & 0 deletions sass/layout/_gallery.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
overflow: hidden;
cursor: pointer;

&:focus {
outline: none;
box-shadow: 0 0 0 3px white, 0 0 0 6px $primaire-bg;
}
}

&__link {

& img,
& video {
width: 275px;
Expand Down

0 comments on commit 8f7e317

Please sign in to comment.