feat(ui): cosmetic tweaks — profile pencil, pills, search, ticket count, map icon, avatar trigger, no overlay animations #105
1 changed files with 13 additions and 0 deletions
feat(ui): disable enter/exit animations on overlays globally
Reka-ui overlays (dialog, sheet, popover, dropdown, tooltip, …) animate their open/close via the data-state open/closed attribute. Zero the animation duration globally in index.css so overlays appear/dismiss instantly — no fade/zoom/slide. Verified the dialog still mounts and unmounts correctly (Presence resolves at 0s). Pulse/spin loaders and CSS transitions (hovers, the favourite heart pop) are untouched. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
commit
1249d33aac
|
|
@ -221,3 +221,16 @@
|
|||
background: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Disable enter/exit animations on reka-ui overlays (dialog, sheet,
|
||||
* popover, dropdown, tooltip, …) app-wide. They animate via the
|
||||
* data-state open/closed attribute; zeroing the duration keeps the final
|
||||
* state but removes the motion (overlays appear/disappear instantly).
|
||||
* Pulse/spin loaders and CSS transitions (e.g. hovers, the favourite
|
||||
* heart pop) are unaffected.
|
||||
*/
|
||||
[data-state='open'],
|
||||
[data-state='closed'] {
|
||||
animation-duration: 0s !important;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue