You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e570a85
Browse filesBrowse the repository at this point in the historyBrowse files
fix(core): a mouse release lands on the hover the control still has
Under spec:AST-094 FR43 the press controller paints a mouse's or a pen's
press too, and its colour arms yielded to the press image over the whole
release. Under a hovering pointer that hid the hover the control still
has: the fade ran toward nothing, dipping toward the resting colour, and
the hover snapped back when the attribute went.
Now only the press yields over the release: a hovering pointer's hover
paints again beneath the fading image (the colour, image and neutral
overlay variants, the button press layer, and the card, selectable-card
and thumbnail overlay layers, whose hover fades back in on their fast
transition). A finger has no hover, so its release still fades to
nothing; the pressed-only variant (a text link, a disclosure row) paints
no hover and is unchanged.
Real Chromium, median brightness 15 ms apart after a hovered release
(hover 242, rest 255): list row 236 249 255 244 -> 228 234 241 242;
TopNav item 236 247 254 255 -> 230 234 241 242; ClickableCard
236 247 254 249 -> 230 236 242. Button 222 232 239 -> 211 221 227 (hover
228). Under Reduce Motion a link and a disclosure row show no tint.
Builds on the yield rule of the press-paint work by vjeux.
[fix] A mouse or pen release on a hovered control lands on its hover tint: the hover paints again beneath the fading press, so buttons, list rows, navigation items and cards no longer dip toward their resting colour or flash bare as the press ends.
0 commit comments