You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tab to the 'Getting started' accordion section heading in the first example
Press the enter key or spacebar to collapse the accordion section
Press it again to expand the accordion section
Observe that focus now jumps to the last accordion heading in the list
What is Expected?
Focus should remain on the same accordion heading when the section is expanded or collapsed
What is actually happening?
Expanding an accordion section moves focus to the last accordion heading (except when you expand the last section, in which case focus moves to the second-to-last heading). This is an accessibility issue; the user will not expect focus to jump from the section they've interacted with
Note that the focus also moves if you use the mouse to expand the section, but it's less visbile because focus styles are only used when interacting with the keyboard
The text was updated successfully, but these errors were encountered:
Version
@nuxt/ui: v2.8.0
nuxt: 3.7.1
Reproduction Link
https://ui.nuxt.com/elements/accordion
Steps to reproduce
What is Expected?
Focus should remain on the same accordion heading when the section is expanded or collapsed
What is actually happening?
Expanding an accordion section moves focus to the last accordion heading (except when you expand the last section, in which case focus moves to the second-to-last heading). This is an accessibility issue; the user will not expect focus to jump from the section they've interacted with
Note that the focus also moves if you use the mouse to expand the section, but it's less visbile because focus styles are only used when interacting with the keyboard
The text was updated successfully, but these errors were encountered: