Content
List item
A list item is one row of a list that sits flat on paper, such as a payment in a statement, an entry in the timeline or a project in a web list.
In kanso-ui as ListItem
Accessibility
- Static rows are
<li class="k-item">in a<ul class="k-list">. A row that opens something is one<a class="k-item" href>among its siblings in a<nav>or a<div class="k-list">; its name is its text, title first. - Keyboard: Tab moves from row to row and Enter opens one. Mark the open row with
aria-current="page". - Avatars and marks are
aria-hidden="true"; the meta line names the person and the state. Use<time>for the lead time. - Contrast from tokens.json, light then dark:
inkonpaper16.7:1 and 15.9:1;ink-muted6.4:1 and 8.9:1;positive6.3:1 and 10.9:1;on-accent-softonaccent-soft9.5:1 and 9.6:1; the late mark'scaution4.6:1 and 11.0:1, above the 3:1 a mark needs.positiveonaccent-softholds 5.4:1 and 7.1:1. - Targets: 60px rows (
size-row) on phones and 44px on the web, above the 48px and 32px minimums. Motion: none.