mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 12:38:21 -05:00
Over the years we've received multiple pieces of feedback around our lack of meaningful H1 tags on our topic lists. This adds an `<H1>`, hidden with `.sr-only`, for screenreaders that describes the content of our discovery routes. I've tried to keep these structured in a way that's somewhat consistent and uses natural language. The translations could probably be more efficiently structured, but I think we need a good amount of flexibility here for translators to change the sentence structure. Ultimately this means people using screenreaders will know which page they're on while navigating headings... and without having to parse through our navigation. For example (made visible to demonstrate):    