fix: enforce handbook scrollbar and reduced motion contracts
This commit is contained in:
@@ -215,25 +215,13 @@
|
||||
var(--drawer-exit-ease);
|
||||
}
|
||||
|
||||
/* Reduced motion must beat the direction-specific animation rules above. */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.hv-drawer__dialog[data-entering="true"],
|
||||
.hv-drawer__dialog[data-exiting="true"],
|
||||
.hv-drawer__dialog[data-entering="true"][data-placement="left"],
|
||||
.hv-drawer__dialog[data-entering="true"][data-placement="right"],
|
||||
.hv-drawer__dialog[data-entering="true"][data-placement="top"],
|
||||
.hv-drawer__dialog[data-entering="true"][data-placement="bottom"],
|
||||
.hv-drawer__dialog[data-exiting="true"][data-placement="left"],
|
||||
.hv-drawer__dialog[data-exiting="true"][data-placement="right"],
|
||||
.hv-drawer__dialog[data-exiting="true"][data-placement="top"],
|
||||
.hv-drawer__dialog[data-exiting="true"][data-placement="bottom"] {
|
||||
animation: none;
|
||||
}
|
||||
|
||||
.hv-drawer__backdrop[data-entering="true"],
|
||||
.hv-drawer__backdrop[data-exiting="true"] {
|
||||
animation: none;
|
||||
}
|
||||
/* Reduced motion must beat direction-specific animation rules, including
|
||||
* explicit data-reduce-motion on the element or its portal ancestor. */
|
||||
.hv-drawer__dialog[data-entering="true"][data-placement],
|
||||
.hv-drawer__dialog[data-exiting="true"][data-placement],
|
||||
.hv-drawer__backdrop[data-entering="true"],
|
||||
.hv-drawer__backdrop[data-exiting="true"] {
|
||||
@apply motion-reduce:animate-none;
|
||||
}
|
||||
|
||||
@keyframes hv-drawer-backdrop-in {
|
||||
|
||||
Reference in New Issue
Block a user