layer5 icon indicating copy to clipboard operation
layer5 copied to clipboard

[Bug][Resources] Make filter toggles and Clear Filters real buttons for keyboard access

Open vasakb opened this issue 2 days ago β€’ 2 comments

Description

Description

On the Resources page, the filter headers (Type, Product, Technology, Service Mesh) and Clear Filters in src/sections/Resources/Resources-grid/filters.js are written as clickable <div> and <span> tags instead of <button> tags.

Because they are not real buttons:

  • Pressing Tab skips over them, so keyboard users cannot open or close the filter lists or clear filters.
  • Screen readers cannot tell if a filter section is open or closed.
  • The mobile Filters button is also wrapped inside a clickable <div>.

I would like to work on this issue. Please assign it to me!

Expected Behavior

  • Change the toggle-btn <div> elements and Clear Filters <span> elements into <button type="button"> elements.
  • Move the mobile filter onClick handler directly onto <button type="button" className="filter-btn"> and remove the outer clickable <div>.
  • Add aria-expanded to the toggle buttons and disabled to Clear Filters when no filters are selected.
  • Keep the design and layout looking the exact same.

Screenshots

Screenshot 2026-12-02 at 7 56 50β€―PM Screenshot 2026-12-02 at 8 00 01β€―PM

Environment:

  • Host OS:
  • Browser:

Contributor Resources and Handbook

The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the master branch.

Join the Layer5 Community by submitting your community member form.

vasakb avatar Dec 02 '26 14:12 vasakb

Hi @piyushtripathi9424 @tejaswiverma121-byte i would like to work on this issue could you please assign this issue to me !!

vasakb avatar Dec 02 '26 14:12 vasakb

Hi @piyushtripathi9424 @tejaswiverma121-byte i would like to work on this issue could you please assign this issue to me !!

Go ahead @vasakb πŸ¦–

PARTH-TUSSLE avatar Dec 02 '26 15:12 PARTH-TUSSLE