[Bug][Resources] Make filter toggles and Clear Filters real buttons for keyboard access
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
Tabskips 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
Filtersbutton 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 andClear Filters<span>elements into<button type="button">elements. - Move the mobile filter
onClickhandler directly onto<button type="button" className="filter-btn">and remove the outer clickable<div>. - Add
aria-expandedto the toggle buttons anddisabledtoClear Filterswhen no filters are selected. - Keep the design and layout looking the exact same.
Screenshots
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.
- π See contributing instructions.
- π¨ Wireframes and designs for Layer5 site in Figma (open invite)
- ππΎππΌ Questions: Discussion Forum and Community Slack.
Join the Layer5 Community by submitting your community member form.
Hi @piyushtripathi9424 @tejaswiverma121-byte i would like to work on this issue could you please assign this issue to me !!
Hi @piyushtripathi9424 @tejaswiverma121-byte i would like to work on this issue could you please assign this issue to me !!
Go ahead @vasakb π¦