Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
recent_topic: Add role and area properties according to MDN docs.
pilgrim23082495f4498b97
diff --git a/static/js/recent_topics.js b/static/js/recent_topics.jsindex 047694ab9f9..61d5f365d94 100644--- a/static/js/recent_topics.js+++ b/static/js/recent_topics.js@@ -397,12 +397,14 @@ function show_selected_filters() {if (filters.size === 0) {$("#recent_topics_filter_buttons").find('[data-filter="all"]')- .addClass("btn-recent-selected");+ .addClass("btn-recent-selected")+ .attr("aria-checked", "true");} else {for (const filter of filters) {$("#recent_topics_filter_buttons").find(`[data-filter="${CSS.escape(filter)}"]`)- .addClass("btn-recent-selected");+ .addClass("btn-recent-selected")+ .attr("aria-checked", "true");}}}diff --git a/static/templates/recent_topics_filters.hbs b/static/templates/recent_topics_filters.hbsindex 79af486c3c6..c2adf74e398 100644--- a/static/templates/recent_topics_filters.hbs+++ b/static/templates/recent_topics_filters.hbs@@ -1,5 +1,5 @@<button data-filter="all" type="button" class="btn btn-default btn-recent-filters">{{t 'All' }}</button>-<button data-filter="include_muted" type="button" class="btn btn-default btn-recent-filters">+<button data-filter="include_muted" type="button" class="btn btn-default btn-recent-filters" role="checkbox" aria-checked="false">{{#if filter_muted }}<i class="fa fa-check-square-o"></i>{{else}}@@ -7,7 +7,7 @@{{/if}}{{t 'Include muted' }}</button>-<button data-filter="unread" type="button" class="btn btn-default btn-recent-filters">+<button data-filter="unread" type="button" class="btn btn-default btn-recent-filters" role="checkbox" aria-checked="false">{{#if filter_unread}}<i class="fa fa-check-square-o"></i>{{else}}@@ -15,7 +15,7 @@{{/if}}{{t 'Unread' }}</button>-<button data-filter="participated" type="button" class="btn btn-default btn-recent-filters">+<button data-filter="participated" type="button" class="btn btn-default btn-recent-filters" role="checkbox" aria-checked="false">{{#if filter_participated}}<i class="fa fa-check-square-o"></i>{{else}}