ic-ui-kit icon indicating copy to clipboard operation
ic-ui-kit copied to clipboard

Collapsed footer link groups not focusable

Open GCHQ-Developer-847 opened this issue 1 year ago • 1 comments

Summary of the bug

When viewing a footer which has grouped links on a small screen, the collapsed groups are not focusable.

🪜 How to reproduce

  1. Go to a footer with grouped links, e.g. Grouped links story
  2. Make the screen / window size small enough to make the groups of links collapsed
  3. Try tabbing to the link groups
  4. See that they are not focusable and therefore can't be opened by keyboard

🖥 📱 Device

  • Browser: All browsers

🧐 Expected behaviour

The footer link groups should be focusable and allow the user to expand the link groups using the keyboard to access the links within.

📝 Acceptance Criteria

Given that I am viewing a footer with grouped links on a small screen When I tab to the footer Then the footer link groups become focussed and allow me to expand the groups when I press Enter.

Additional info

Not sure what the focus indicator should look like when the footer link group is expanded. Would the whole expanded group be focused, or just the top section (a bit like accordion components)?

GCHQ-Developer-847 avatar Jul 22 '24 15:07 GCHQ-Developer-847

Giving the ic-section-container a tabindex="0" seems to fix the issue.

gd2910 avatar Oct 10 '24 08:10 gd2910