mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-05 14:42:14 +08:00
This is fairly minor because usually SVGs aren't focusable, but this adds `aria-hidden='true'` to all SVGs by default unless either an `aria-label` or `label` is provided. This gets reported to us in automated tests from time to time. So now: 1. SVG: `aria-hidden="true"` (new behavior, safe default when no label is provided) 2. SVG with `label` param: `aria-hidden="true"` and `sr-only` label is provided 3. SVG with `aria-label` param: `aria-hidden="false"` and `aria-label` is provided |
||
|---|---|---|
| .. | ||
| discourse-local-dates-test.js | ||
| local-date-builder-test.js | ||