From 4d5bf5ac48499c57cfdffd98bfaa29bf20d85260 Mon Sep 17 00:00:00 2001 From: John Hildenbiddle Date: Wed, 29 Nov 2023 23:23:30 -0600 Subject: [PATCH] feat: Allow top nav to receive keyboard focus (#2269) --- src/themes/basic/_layout.styl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/themes/basic/_layout.styl b/src/themes/basic/_layout.styl index 1e37e4bd..a38dd93f 100644 --- a/src/themes/basic/_layout.styl +++ b/src/themes/basic/_layout.styl @@ -171,14 +171,13 @@ li input[type='checkbox'] border-bottom-color #ccc border-radius 4px box-sizing border-box - display none max-height calc(100vh - 61px) overflow-y auto padding 10px 0 position absolute right -15px text-align left - top 100% + top -100vh white-space nowrap li @@ -198,8 +197,9 @@ li input[type='checkbox'] &.active border-bottom 0 + &:focus-within ul, &:hover ul - display block + top: 100%; /* github corner */ .github-corner