Content
Avatar
An avatar marks a person with their initial in a circle, or a team with its initial in a rounded square, wherever it matters who did something.
In kanso-ui as Avatar
Accessibility
- A person keeps one avatar style everywhere, as in Fluent's persona: G is ink in the app bar, in statement rows and in stacks, and Ada is tonal in all of them. The initial and the name tell people apart, never the colour alone.
- When a name is next to the avatar, as in a persona or a row whose meta says "You paid 212.40", the initial is
aria-hidden="true"; otherwise a screen reader reads "G, You". - An avatar on its own gets
role="img"and the person's name asaria-label. A stack gets one label for everyone in it: "You and Ada". - Keyboard: avatars are not tab stops; the button around one is.
- Contrast from tokens.json, light then dark:
on-inkonink16.7:1 and 15.9:1;inkoncontainer14.3:1 and 12.0:1;on-accent-softonaccent-soft9.5:1 and 9.6:1; the persona's meta,ink-mutedonpaper, 6.4:1 and 8.9:1. The fill is not a control boundary, so it needs no 3:1 against the ground. - Motion: none.