Field focus on pop-up #30837
XVII
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
What problem is your feature request going to solve? Please describe..
A search box (for example) is not intuitive when placed inside a pop-up because the text field isn't focused on open.
This is due to changes from #21466.
Describe the solution you'd like.
Can the default focus element field be set so we can select the element by a nominated selected -- i.e. ID or Class?
That would allow designers to set a logical field for assistive technologies instead of just the close button (which may not even be visible if configured so based on "seconds before show").
This new option would sit neatly alongside
Open By Selectorwhich is used to trigger the pop-up (say from an icon).Describe alternatives you've considered.
Turning "Accessible navigation" off on the pop up does not return to the old behaviour of the "focus the first element". it just does nothing.
Otherwise, writing custom Javascript and try and hook into the pop up load and manually focus the field. Messy.
An event after openSelector would be nice to at least make this smoother.
Additional context
Related to
Full Screenisn't available in new search widget.Agreement
All reactions