Skip to content
This repository was archived by the owner on Sep 10, 2022. It is now read-only.

Commit 3a1f188

Browse files
committed
a11y: more improvements to focus styles
1 parent 72e6198 commit 3a1f188

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/styles/core/_side-nav.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
width: 304px;
5151
height: 100%;
5252
overflow: hidden;
53-
outline: none;
5453

5554
box-shadow: 0 0 4px rgba(0, 0, 0, .14),
5655
0 4px 8px rgba(0, 0, 0, .28);
@@ -60,6 +59,7 @@
6059
transform: translateX(-102%);
6160
}
6261

62+
6363
.side-nav__content--animatable {
6464
transition: -webkit-transform 0.233s cubic-bezier(0,0,0.21,1);
6565
transition: transform 0.233s cubic-bezier(0,0,0.21,1);
@@ -124,6 +124,11 @@
124124
text-decoration: none;
125125
}
126126

127+
.side-nav__blog-post:focus {
128+
background-color: #eee;
129+
outline: 0;
130+
}
131+
127132
.side-nav__file-bug-report {
128133
background-image: url(/images/ic_feedback_24px.svg);
129134
line-height: 48px;

0 commit comments

Comments
 (0)