Repository navigation
Commit 5958446
committed
Global Styles: do not announce a result when the block list is empty
An empty list renders its message as the wrapper's only child, so the
child count read for the announcement was 1 and a screen reader heard
"1 result found." alongside "You haven't customized any blocks yet."
Reachable on the filter's own path, where the list can be empty with no
search term, so count the children only when there are results.1 parent 46939de commit 5958446
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
246 | 247 | | |
247 | 248 | | |
248 | 249 | | |
| |||
255 | 256 | | |
256 | 257 | | |
257 | 258 | | |
258 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
259 | 264 | | |
260 | 265 | | |
261 | 266 | | |
262 | 267 | | |
263 | 268 | | |
264 | 269 | | |
265 | | - | |
| 270 | + | |
266 | 271 | | |
267 | 272 | | |
268 | 273 | | |
| |||
0 commit comments