mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 09:38:56 +08:00

The heading role on topic lists is desirable for screenreader users because they can easily navigate from heading to heading. Having this role on the link tag directly becomes problematic for Voice Control users on Apple devices because unfortunately Voice Control assumes that when given the role of a heading, it is not a link. This makes it difficult to click. This PR moves the heading role to the link's wrapper. This change allows for heading-to-heading navigation for screenreaders, and also makes it easier to click using Voice Control. The end result is that topic lists are both navigable for screenreaders and Voice Control users.