Skip to content

Commit 6b34153

Browse files
fix #147, make element focus more obvious
Prior to this commit, depending on the browser being used, it may have been quite difficult to see which element was in focus when navigating the page using the tab key. This has been corrected by adjusting the `:focus` pseudo-class styles for selectable elements so that it no longer depends on inconsistent user-agent styles. Notes: https://user-images.githubusercontent.com/17770407/87440188-b38cdc80-c5bf-11ea-86e3-8b1c8652e25b.png https://user-images.githubusercontent.com/17770407/87440518-141c1980-c5c0-11ea-964f-70ff56523438.png Fixes: #147
1 parent 324e2d5 commit 6b34153

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

_sass/_a11y.scss

+17
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,20 @@
77
white-space: nowrap;
88
width: 1px;
99
}
10+
11+
:focus {
12+
outline-offset: .125rem;
13+
outline-style: solid;
14+
outline-width: .125rem;
15+
}
16+
17+
.logo-box a:focus {
18+
outline-color: $color-nav;
19+
}
20+
21+
.featurelist__item__tag,
22+
.submenu {
23+
:focus {
24+
outline: 0;
25+
}
26+
}

0 commit comments

Comments
 (0)