Content
Divider
A divider is the 1px hairline that separates content on paper, and its accented form, the now line, marks the current time inside the timeline.
In kanso-ui as Separator
Accessibility
- An
<hr>is announced as a separator, so use one only where the break means something. Row hairlines are borders and are not announced. - The now line is a list item with text, so screen readers meet "Now · 14:32" in order, between 13:55 and 15:00. The 2px line is
aria-hidden; the time is a<time>element. - Keyboard: neither is focusable.
- Contrast from tokens.json: the hairline is decorative and never the only boundary of a control, since controls take
outline. The now line'saccentholds 7.3:1 onpaperin light and 9.0:1 in dark, and the label'son-accentonaccent7.6:1 and 7.7:1. The word "Now" says it too, so the line is not told by colour alone. - Motion: nothing pulses or slides, so reduced motion needs no change.