Commit 3949a68
committed
Add aria-label to filter panel close button
The desktop "close filters" button in the search results filter panel
was an icon-only IconButton with no accessible name. A screen reader
announced it only as "button", so users could not tell what it does.
Add aria-label="Close filters", matching the pattern already used by the
sibling "Clear organization name filter" button in the same file and the
"close" button in AnnouncementSnackbar.
Also add a Playwright test that opens the filter panel, asserts the close
button is reachable by its accessible name, and confirms it closes the panel.1 parent 2c48c99 commit 3949a68
2 files changed
Lines changed: 15 additions & 1 deletion
File tree
- client
- src/components/FoodSeeker/SearchResults/ResultsFilters
- tests
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
111 | 125 | | |
0 commit comments