3 ms·
If any accessibility experts are reading, is there a best way to do this? E.g. title attribute is best for mouse users to hover on desktop, but is there a way
by nitrogen 5y ago
If any accessibility experts are reading, is there a best way to do this? E.g. title attribute is best for mouse users to hover on desktop, but is there a way that works for all users on devices? Maybe the abbr tag?
So far I haven't seen an html-only solution that works on mobile.
- joombaga 5y agoNot an accessibility or html expert, but in the AWS console you can switch between "x days ago" and exact timestamp by clicking/tapping the timestamp.
- andreareina 5y agoNot an a11y expert but I imagine that's what the <time> element[1] is for. [1] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ti...
- kodah 5y agoI've been developing my new website and use "x days ago" which is a feature of most date libraries like luxon or moment. I modeled what GitHub does where you can mouse over the text and it produces the actual timestamp. On mobile that doesn't work, so I print the date in disabled text.