From 510da1160d5b2fea58fdd501977cfad26e068063 Mon Sep 17 00:00:00 2001 From: John Hildenbiddle Date: Mon, 16 Oct 2023 13:28:10 -0500 Subject: [PATCH] Allow top nav to receive keyboard focus Fix #530 --- 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 04b7fed82..75837ebdd 100644 --- a/src/themes/basic/_layout.styl +++ b/src/themes/basic/_layout.styl @@ -139,14 +139,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 @@ -166,8 +165,9 @@ li input[type='checkbox'] &.active border-bottom 0 + &:focus-within ul, &:hover ul - display block + top: 100%; /* github corner */ .github-corner