-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Dates more readable #4210
Comments
from #4194
|
Thanks for singling this out--I just had a support ticket about it from a sighted user who found In terms of possible solutions, we should likely use the |
Would it make sense to use a different label for text-to-speech? I think it would be somewhat detrimental to lose the benefits that come from a standard such as ISO 8601, some of the benefits we'd lose would be
Perhaps we can make the case of maintaining ISO 8601 for tabular data, whilst using an aria-label for screen readers? |
For tabular data it may be worth considering the |
This issue is about what the human sees on the front end where there is a date in isolation (not in a data table) - not about date storage or machine readable meta data. |
Discussed in a11y meeting: we will make a templatefilter that populates the Back-office templates are not in scope for this issue, so dates in tables and metadata outputs need to be discussed separately. |
When working on this I came across an localisation issue. There is a built in date filter that will by default produce the human readable date, and will localise it so that US and UK end up with the different order within the date as expected. Currently this is being overridden in the templates to produce YMD format. So the key change here is to go from But when testing this approach, I found that instead of the expected I think the localisation needs to be fixed before changes are made to the dates. |
When working on Icons in order to make the calendar icon that accompanies a date decorative rather than semantic, I have been updating those dates to the |
Dates are all over our pages - articles, news items, citations, data... etc.
Dates are not consistently interpreted by screen readers, there are variations between how a US and UK citizen might interpret them (day and month ordering) and they cause readability issues - unlike a character within a word, a digit within a number can't often be determined from context.
When dates are written as numbers separated by punctuation, e.g.
10-11-2024
or2024-11-10
this is immediately visibly identifiable as a date, even if there might be US/UK confusion over whether it was the 10th of November or the 11th of October. When read aloud, his recognition that it is a date doesn't happen until one is part was through the number as the above examples are read as numbers e.g. "ten eleven two-thousand and twenty-four". Even with all punctuation being read "ten hyphen eleven hyphen two-thousand and twenty-four" the date is part read before any recognition is possible.In short, dates rely upon typographical symbols to provide important context, making them effectively non-text content WCAG 1.1
Consider:
Either dates are written in full as suggested by the UK Gov approach (below) or there needs to be some markup at least for screenreaders. My preferred solution is to write them in full, because that makes them unambiguous across the board.
Additional info
The text was updated successfully, but these errors were encountered: