0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-11 02:59:07 +08:00
discourse/plugins/poll
Kris 27854ac8e7
A11Y: add aria-label to automatically generated heading anchor links in posts (#36232)
Currently our automatically generated anchor links for headings in posts
are pretty awful to listen to in screenreaders, because screenreaders
are reading the `name` attribute.

Here's an example from a [Meta
post](https://meta.discourse.org/t/a-new-review-queue-layout-with-all-new-features/388194)...
this "A refreshed layout" heading reads like:

 "p-1888119-a-refreshed-layout-1" 

This PR adds `aria-label="heading link"` so now this would read like:

"Heading link, same page link, A Refreshed Layout, heading level 1"

I've added a migration so posts with headings will rebake with the
improved markup.

---------

Co-authored-by: Yuriy Kurant <yuriy@discourse.org>
2025-11-25 18:29:20 -05:00
..
app DEV: Normalize route and namespace setup in plugins (#34962) 2025-09-25 12:35:29 +02:00
assets DEV: Update lint-config and apply autofixes (#35991) 2025-11-12 14:48:49 +01:00
config Update translations (#35983) 2025-11-20 14:38:50 +01:00
db/migrate FEATURE: dynamic poll support (#34368) 2025-08-19 16:43:36 +10:00
jobs/regular DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
lib DEV: Clean up scope resolution operators in plugins (#34979) 2025-09-30 14:36:34 +02:00
spec A11Y: add aria-label to automatically generated heading anchor links in posts (#36232) 2025-11-25 18:29:20 -05:00
test/javascripts DEV: Remove unneeded const self = this; from qunit tests (#35632) 2025-10-27 18:07:22 +00:00
package.json DEV: Overhaul typechecking configuration (#35794) 2025-11-12 12:54:34 +00:00
plugin.rb DEV: Clean up scope resolution operators in plugins (#34979) 2025-09-30 14:36:34 +02:00
tsconfig.json DEV: Overhaul typechecking configuration (#35794) 2025-11-12 12:54:34 +00:00