Skip to content

Commit 4d5bf5a

Browse files
feat: Allow top nav to receive keyboard focus (#2269)
1 parent 50b84f7 commit 4d5bf5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/themes/basic/_layout.styl

+3-3
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,13 @@ li input[type='checkbox']
171171
border-bottom-color #ccc
172172
border-radius 4px
173173
box-sizing border-box
174-
display none
175174
max-height calc(100vh - 61px)
176175
overflow-y auto
177176
padding 10px 0
178177
position absolute
179178
right -15px
180179
text-align left
181-
top 100%
180+
top -100vh
182181
white-space nowrap
183182

184183
li
@@ -198,8 +197,9 @@ li input[type='checkbox']
198197
&.active
199198
border-bottom 0
200199

200+
&:focus-within ul,
201201
&:hover ul
202-
display block
202+
top: 100%;
203203

204204
/* github corner */
205205
.github-corner

0 commit comments

Comments
 (0)