Content
Spotlight card
The spotlight card holds the one thing that needs the person now, such as a late task, with the actions that resolve it; a screen never has more than one.
Designed, coming to kanso-ui
Accessibility
- Use a
<section>witharia-labelledbyon the title, which is a heading, so screen readers announce "Weekly review" before the buttons. - Keep the source order as you see it. Tab moves through the three buttons in order; Enter or Space activates. Icons are
aria-hidden. - Contrast from tokens.json, light then dark:
on-spotlightonspotlight7.6:1 and 9.4:1;on-spotlight-muted5.5:1 and 6.6:1;on-spotlight-buttononspotlight-button11.1:1 and 11.6:1; tonal labels 5.2:1 and 6.5:1;spotlight-line3.8:1;on-caution-softoncaution-soft9.5:1 and 10.0:1; the focus ring 7.6:1 and 9.4:1. - Targets: 56px for the main action (
size-control-xl), 48px for the others (size-control-lg). - Motion: cross-fade the next item in over 300 ms (
--k-motion-medium); with reduced motion, swap it at once. If a product adds a swipe to remind later, the buttons stay as its alternative.