mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-26 23:09:13 +08:00
This adds some accessibility improvements to the custom topic list items
in Horizon:
* by default icons are decorative and not read, so we added labels for
the like and reply icons so they're not read by screenreaders as bare
numbers ("5") and will instead have context ("5 likes")
* title wrapper gets `role="heading" aria-level="2"` to match core's
`topic-cell.gjs` heading
structure, easier to navigate by heading now
* the hot/pinned icons on small screens where the text is hidden needed
some aria-labels
* assigned needed hidden "assigned to" text so it's not just a bare
username being read
* added `imageSize="small"` to dAvatar, not accessibility but
width/height were undefined otherwise and we were getting too-big images
that were resized with CSS
|
||
|---|---|---|
| .. | ||
| discourse | ||
| .gitkeep | ||