Merge pull request #2451 from nqst/fix-safari-glitches

Fix Safari transition glitches
This commit is contained in:
Andy Smith
2026-02-16 09:58:26 -06:00
committed by GitHub
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -34,7 +34,7 @@
:is(a, button, input, textarea, .switch, .btn) {
transition: 100ms ease-out;
transition-property: background-color, border-color, box-shadow, filter, outline;
transition-property: background-color, border-color, box-shadow, outline;
touch-action: manipulation;
/* Keyboard navigation */
+1 -1
View File
@@ -19,7 +19,7 @@
pointer-events: auto;
position: relative;
transition: 100ms ease-out;
transition-property: background-color, border, box-shadow, color, filter, opacity, scale;
transition-property: background-color, border, box-shadow, color, opacity, scale;
@media (any-hover: hover) {
&:hover {
+3 -2
View File
@@ -185,15 +185,16 @@
.cards__transition-container {
block-size: 100%;
border-radius: calc(var(--column-width-collapsed) / 2);
translate: 0 0.5ch; /* Allow a little room for the mini bubble */
margin-block-start: 0.5ch; /* Allow a little room for the mini bubble */
transition: translate var(--column-transition-duration) var(--ease-out-overshoot-subtle);
@media (min-width: 640px) {
.is-expanded & {
translate: 0 0.5ch; /* Allow a little room for the mini bubble */
translate: 0; /* Animate back from collapsed state */
}
.is-collapsed & {
margin-block-start: 0;
translate: 0 var(--column-width-collapsed);
}
}