mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
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 |
||
---|---|---|
.. | ||
composer | ||
emojis | ||
page_objects | ||
user_page | ||
admin_customize_form_templates_spec.rb | ||
admin_customize_themes_spec.rb | ||
bookmarks_spec.rb | ||
category_edit_spec.rb | ||
custom_sidebar_sections_spec.rb | ||
discovery_breadcrumb_navigation_spec.rb | ||
dismiss_topics_spec.rb | ||
editing_sidebar_categories_navigation_spec.rb | ||
ember_deprecation_test.rb | ||
fast_edit_spec.rb | ||
filtering_topics_spec.rb | ||
hashtag_autocomplete_spec.rb | ||
network_disconnected_spec.rb | ||
reviewables_spec.rb | ||
search_spec.rb | ||
tag_notification_level_spec.rb | ||
tag_synonyms_spec.rb | ||
topic_page_spec.rb | ||
topic_summarization_spec.rb | ||
user_preferences_interface_spec.rb | ||
user_preferences_navigation_spec.rb | ||
user_selector_spec.rb | ||
viewing_category_spec.rb | ||
viewing_navigation_menu_preferences_spec.rb | ||
viewing_sidebar_mobile_spec.rb | ||
viewing_sidebar_spec.rb | ||
viewing_user_private_messages_spec.rb |