From bbcf026ce40c6950bed5bebb76acdff21337b0df Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Thu, 26 Aug 2021 14:17:42 +0800 Subject: [PATCH] MDL-72276 block_timeline: Make screen readers announce current selection * Have the currently selected dropdown menu item serve as the dropdown's description in order for screen readers to announce its current selection. - JAWS and NVDA both read this as "[element name] [selected value]". - Chrome screen reader (formerly ChromeVox) does not announce the description. * Add a title attribute so the dropdown's element name can be shown by browsers on hover. --- blocks/timeline/templates/nav-day-filter.mustache | 5 +++-- blocks/timeline/templates/nav-view-selector.mustache | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/blocks/timeline/templates/nav-day-filter.mustache b/blocks/timeline/templates/nav-day-filter.mustache index f19264decf0..4c36eee4317 100644 --- a/blocks/timeline/templates/nav-day-filter.mustache +++ b/blocks/timeline/templates/nav-day-filter.mustache @@ -24,8 +24,9 @@ }}