shibro
Show the version of “A highlight that sits behind its label”

Optical balance · SU-137 · SU-30

A highlight that sits behind its label

Flip between the version shibroUI flags and the one it ships. The marks and callouts show what changes.

  • Chip padding 12px left · 28px right
  • Chip padding 16px · 16px
  • Highlight 6px right of its label
  • Highlight the item’s own box

What changes

Bad
The highlight sits 6px right of “Today” (12px vs 24px) and the chip pads 12px / 28px.
Good
The highlight takes the selected day’s own box, and the chip pads 16px on both sides.

The rules

  • SU-137

    Centered content (labels in pills, highlights behind labels). Content meant to be centered in a control is centered to within about 2px. A separately drawn selection highlight (a segmented-control or tab pill) is centered on the item it marks.

  • SU-30

    Button padding with an icon. 14px on the icon side, 18px on the text side. Not: 18px / 18px with a leading icon: the content looks shifted right.