Opened 4 weeks ago
Last modified 2 weeks ago
#53951 new defect (bug)
Twenty Twenty Search modal aria-expanded
Reported by: | utz119 | Owned by: | |
---|---|---|---|
Milestone: | 5.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Bundled Theme | Keywords: | has-patch needs-testing has-testing-instructions |
Focuses: | accessibility | Cc: |
Description
Theme: Twenty Twenty
When opening the search modal using the Tab key, then closing it using the Esc key causes aria-expanded to remain “true” even after the modal is closed.
To reproduce the issue:
- Navigate to the search button using the Tab key
- Use the Enter key to open the search form
- Use the Esc key to close
Attachments (2)
Change History (6)
#4
@
2 weeks ago
- Keywords has-testing-instructions added
- Milestone changed from Awaiting Review to 5.9
Thanks for the ticket and patch @utz119.
It is noteworthy that the aria-expanded attribute is set correctly when the search modal is clicked in the responsive screen sizes. It is handled through the twentytwentyToggleAttribute()
function. We should perhaps refresh the patch to make use of the currently written code.
Note: See
TracTickets for help on using
tickets.
Hi and welcome to WordPress Trac! Thanks for the ticket.
I reproduce the issue.
Additionally, if we click outside or the form it show same aria-expanded.