mirror of
https://github.com/discourse/discourse.git
synced 2025-06-24 03:01:33 +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