swarm-ui: menus, popovers, toasts and dialogs fade in, with one motion guard
Dialogs, toasts, popovers, dropdowns and the filter popover appeared with no transition, and the header menu had a keyframe of its own. theme.css holds --enter and --fade, off under reduced motion and the motion setting's reduce, and each floating box uses them.
This commit is contained in:
parent
fdeb95a61b
commit
9fdde2ec63
4 changed files with 135 additions and 25 deletions
|
|
@ -33,8 +33,12 @@
|
|||
background: var(--bg-elev);
|
||||
color: var(--fg);
|
||||
}
|
||||
.ui-dialog[open] {
|
||||
animation: var(--enter);
|
||||
}
|
||||
.ui-dialog::backdrop {
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
animation: var(--fade);
|
||||
}
|
||||
/* `plain` (see Dialog.tsx's file-top comment): drop this dialog's own
|
||||
card look entirely — sizing/backdrop/scroll behavior above are the
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@
|
|||
position: relative;
|
||||
}
|
||||
.ui-multiselect-filter-popover {
|
||||
animation: var(--enter);
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
card (a `Panel`), so the box itself only floats, casts a shadow and caps its
|
||||
size to the viewport. */
|
||||
.ui-popover {
|
||||
animation: var(--enter);
|
||||
position: fixed;
|
||||
z-index: var(--z-popover);
|
||||
box-sizing: border-box;
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
pointer-events: none;
|
||||
}
|
||||
.ui-toast {
|
||||
animation: var(--enter);
|
||||
pointer-events: auto;
|
||||
cursor: pointer;
|
||||
background: var(--bg-elev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue