Notification Badge Behavior
A badge counts things that need attention. Decide what clears it, cap the number, and tell assistive technology without shouting.
Guide collection
Section guides for UI implementation details and design decisions
17 guides in this collection
A badge counts things that need attention. Decide what clears it, cap the number, and tell assistive technology without shouting.
Sort state belongs in the URL, a new sort returns to page one, and the order must be stable or rows will repeat and vanish between pages.
A tooltip is a short label that appears on hover and focus and holds nothing to click. Anything richer is a popover, opened on purpose.
Three rules for full-height layouts on iPhone: size with svh, combine safe-area insets with max, and remember that a fluid root font changes every rem.
Tie each series colour to the metric it shows through one lookup, so a metric keeps its colour in every chart and removing one never repaints the rest.