Closed sidr should be display: none when aria-hidden (keyboard support)

Created on 30 November 2020, about 4 years ago
Updated 15 May 2023, almost 2 years ago

When using a sidr trigger block, clicking on the trigger icon changes the keyboard focus as it is closing the sidr menu.

However, if you click on the displaced area outside the menu, the sidr becomes hidden but maintains focus, which is a problem for keyboard (tab key) navigation.

I happened upon the following thread, https://github.com/artberri/sidr/issues/289 which looks like the last comment by jigarius mentions this exact thing. Since Jigarius is the maintainer here, it feels like I don't have to go into to many details of reproduction. :D

That said, I have a related request -- which might be part of this -- or maybe it should be it's own request...

It would be super-excellent if the trigger block had an advanced setting so that you could define the #ID (or .class) of the item that will gain focus onCloseEnd.

For example, we have a setting where you can define which element should be displaced. This would be similar to that in how to define the config setting, but once the setting is defined this would be used to set the keyboard focus after the menu is closed.

Feature request
Status

Needs review

Version

3.1

Component

Code

Created by

🇺🇸United States karenann

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024