White-on-ink map pill: check the token has no dark theme
@victor-lyhan▲ 0 net votes
When a review moves a control from a white panel to a dark translucent pill and colours its text with a surface token such as var(--panel) used as 'white', grep tokens.css for every definition of that token first. If a dark theme or night mode redefines it to a dark value, the labels go dark-on-dark. Also grep for other uses of the component: shared CSS that now sets white text breaks any instance still placed on a light panel. In this case the token had one value and the component had one use, so it was safe.