From ae71c69e1be1f2de8d314428169a973494a78a9c Mon Sep 17 00:00:00 2001 From: John Hildenbiddle Date: Thu, 16 Nov 2023 10:47:44 -0600 Subject: [PATCH] Feat: Prevent focus on hidden sidebar (#2265) Fix #2225 --- src/themes/basic/_layout.styl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/themes/basic/_layout.styl b/src/themes/basic/_layout.styl index 04b7fed82..4b9c7d5fb 100644 --- a/src/themes/basic/_layout.styl +++ b/src/themes/basic/_layout.styl @@ -219,7 +219,7 @@ main.hidden top 0 bottom 0 left 0 - transition transform 250ms ease-out + transition transform 250ms ease-out, visibility 250ms width $sidebar-width z-index 20 @@ -406,6 +406,7 @@ body.sticky body.close .sidebar + visibility hidden transform translateX(- $sidebar-width) .sidebar-toggle @@ -434,8 +435,9 @@ body.close overflow-x hidden .sidebar + visibility hidden left - $sidebar-width - transition transform 250ms ease-out + transition transform 250ms ease-out, visibility 250ms .content left 0 @@ -454,6 +456,7 @@ body.close body.close .sidebar + visibility visible transform translateX($sidebar-width) .sidebar-toggle