Content
Table
A table sets records that share the same fields in columns so people can read across and compare, such as the timeline's entries on the web.
In kanso-ui as Table
Accessibility
- Use real table markup:
<table>,<thead>,<th scope="col">,<tbody>. The caption names the table. - Give the wrap
role="region",aria-labelledbyon the caption andtabindex="0"; once focused, the arrow keys scroll it. - Marks are
aria-hidden: the Status column says the state in words, and the Detail figure says what kind of entry it is ("30 min", "46.90"). - Keep a currency sign and its number, and a number and its unit, together with a no-break space.
- Contrast from tokens.json, light then dark:
inkonpaper16.7:1 and 15.9:1; the header'sink-muted6.4:1 and 8.9:1;inkon a hoveredsurface-sunkenrow 15.3:1 and 12.8:1;on-positive-softonpositive-soft10.9:1 and 10.3:1;on-caution-softoncaution-soft9.5:1 and 10.0:1; the neutral badge,inkoncontainer, 14.3:1 and 12.0:1; the late mark'scaution4.6:1 and 11.0:1. - Motion: none.