History Web UI: add aria descriptions about date headers.
The table groups sites visited in the same date in a "card", which
contains a header indicating that date.
We make the information in those headers accessibile using the
aria-described-by property to link the first and last rows of each
card with the corresponding date header, so the date is announced
when navigating the table up or down with the keyboard.
Originally authored by [email protected] on this patch:
https://chromium-review.googlesource.com/c/chromium/src/+/2563485
Bug: 1100393
Change-Id: I256ff2c9b04dc060ec769219cf4bfc7dc32664dc
AX-relnotes: announce date headings in chrome history page.
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2594173
Commit-Queue: Cait Phillips <[email protected]>
Auto-Submit: Dominic Mazzoni <[email protected]>
Reviewed-by: Cait Phillips <[email protected]>
Reviewed-by: Aaron Leventhal <[email protected]>
Reviewed-by: dpapad <[email protected]>
Cr-Commit-Position: refs/heads/master@{#838317}
diff --git a/components/history_strings.grdp b/components/history_strings.grdp
index 48d5f1e..321292b 100644
--- a/components/history_strings.grdp
+++ b/components/history_strings.grdp
@@ -33,7 +33,7 @@
Bookmarked
</message>
<message name="IDS_HISTORY_ENTRY_SUMMARY" desc="Summary of all the fields in a history entry (time, whether the entry is bookmarked, title, and domain).">
- <ph name="TIME"><ex>3:14</ex>$1</ph> <ph name="BOOKMARKED"><ex>bookmarked</ex>$2</ph> <ph name="TITLE"><ex>PI: The Magical Number</ex>$3</ph> <ph name="DOMAIN"><ex>pi.com</ex>$4</ph>
+ <ph name="CARD_TITLE"><ex>Found 11 search results for Pi</ex>$1</ph> <ph name="TIME"><ex>3:14</ex>$2</ph> <ph name="BOOKMARKED"><ex>bookmarked</ex>$3</ph> <ph name="TITLE"><ex>PI: The Magical Number</ex>$4</ph> <ph name="DOMAIN"><ex>pi.com</ex>$5</ph>
</message>
<message name="IDS_HISTORY_FOUND_SEARCH_RESULTS" desc="Message shown when zero or multiple search results are found.">
Found <ph name="NUMBER_OF_RESULTS">$1</ph> <ph name="SEARCH_RESULTS"><ex>search results</ex>$2</ph> for '<ph name="SEARCH_STRING">$3</ph>'