Skip to content

Commit

Permalink
Feat: Prevent focus on hidden sidebar (#2265)
Browse files Browse the repository at this point in the history
Fix #2225
  • Loading branch information
jhildenbiddle authored Nov 16, 2023
1 parent 4e8d6df commit ae71c69
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/themes/basic/_layout.styl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -406,6 +406,7 @@ body.sticky

body.close
.sidebar
visibility hidden
transform translateX(- $sidebar-width)

.sidebar-toggle
Expand Down Expand Up @@ -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
Expand All @@ -454,6 +456,7 @@ body.close

body.close
.sidebar
visibility visible
transform translateX($sidebar-width)

.sidebar-toggle
Expand Down

1 comment on commit ae71c69

@vercel
Copy link

@vercel vercel bot commented on ae71c69 Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.