lion icon indicating copy to clipboard operation
lion copied to clipboard

Accordion incorrect focus handling

Open gerjanvangeest opened this issue 2 years ago • 2 comments

Expected behavior

Accordion incorrect focus handling. The focus should jump from header to panel content, before going to the next header. example: https://www.w3.org/WAI/teach-advocate/accessible-presentations/

Actual Behavior

The focus order first goes to all accordion headers, before going into the panels.

example

gerjanvangeest avatar May 16 '22 09:05 gerjanvangeest

Is there any way to make invokers & contents keep their respective DOM order, instead of melting all of them in invoker and content single slots and using CSS order?

That's the root cause of this issue, and it affects focus but also content navigation.

Edit: FWIW, using multiple lion-accordion (each with a single invoker and content) works fine. The only drawback is keyboard navigation with arrows, but as specified in ARIA authoring practices about accordion pattern, those interactions are optional.

Note: Maybe creating an accordion-group around accordions would ease keyboard interactions handling while keeping each accordion standalone, with a dingle invoker and content.

ffoodd avatar Jun 14 '22 15:06 ffoodd

Might relate to #1724 at some point, I guess.

ffoodd avatar Jun 22 '22 15:06 ffoodd

fixed in: https://github.com/ing-bank/lion/pull/1883

gerjanvangeest avatar Apr 04 '23 08:04 gerjanvangeest