Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Is there a way to collapse the sidebar when the focus leaves the region? #2150

Answered by drammock
peterychang asked this question in Q&A
Discussion options

When the site window is sufficiently small, the sidebars will collapse into popouts. At that point, you can tab navigate through the toc elements. However, you can also tab out of the popout and onto the main page without collapsing it

Example:
image

Is there a way to either prevent the focus from leaving the sidebar, or collapsing the sidebar when the focus leaves the region?

The same issue occurs with the search overlay.

You must be logged in to vote

#1737 explains why it's possible (indeed preferable) for focus to leave the sidebar eventually. See especially this comment

Replies: 1 comment 1 reply

Comment options

#1737 explains why it's possible (indeed preferable) for focus to leave the sidebar eventually. See especially this comment

You must be logged in to vote
1 reply
Comment options

Thanks! I'll see if this is acceptable on our side. I'll post up another discussion in the case that I actually need to change the behavior here

Answer selected by peterychang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /