discourse/plugins
Martin Brennan fc199d42fa
FIX: Add aria-label attribute to cooked hashtags (#22182)
This commit adds an aria-label attribute to cooked hashtags using
the post/chat message decorateCooked functionality. I have just used
the inner content of the hashtag (the tag/category/channel name) for
the label -- we can reexamine at some point if we want something
different like "Link to dev category" or something, but from what I
can tell things like Twitter don't even have aria-labels for hashtags
so the text would be read out directly.

This commit also refactors any ruby specs checking the HTML of hashtags
to use rspec-html-matchers which is far clearer than having to maintain
the HTML structure in a HEREDOC for comparison, and gives better spec
failures.

c.f. https://meta.discourse.org/t/hashtags-are-getting-a-makeover/248866/23?u=martin
2023-06-20 15:47:17 +10:00
..
chat FIX: Add aria-label attribute to cooked hashtags (#22182) 2023-06-20 15:47:17 +10:00
discourse-details Update translations (#21583) 2023-05-16 19:40:01 +02:00
discourse-lazy-videos DEV: Fix random typos (#21638) 2023-05-18 15:34:46 +02:00
discourse-local-dates DEV: Remove superfluous js: true metadata (#21960) 2023-06-07 09:26:58 +08:00
discourse-narrative-bot Update translations (#22081) 2023-06-13 15:18:44 +02:00
discourse-presence Update translations (#20370) 2023-02-20 11:01:01 +01:00
poll DEV: use HTML5 version of loofah (#21522) 2023-06-20 09:49:22 +08:00
styleguide DEV: implements styleguide for chat header icon (#22033) 2023-06-09 18:40:34 +02:00