Skip to content

Commit edb2f91

Browse files
authored
Merge pull request #2451 from nqst/fix-safari-glitches
Fix Safari transition glitches
2 parents b638998 + b937a1e commit edb2f91

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

app/assets/stylesheets/base.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
:is(a, button, input, textarea, .switch, .btn) {
3636
transition: 100ms ease-out;
37-
transition-property: background-color, border-color, box-shadow, filter, outline;
37+
transition-property: background-color, border-color, box-shadow, outline;
3838
touch-action: manipulation;
3939

4040
/* Keyboard navigation */

app/assets/stylesheets/buttons.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
pointer-events: auto;
2020
position: relative;
2121
transition: 100ms ease-out;
22-
transition-property: background-color, border, box-shadow, color, filter, opacity, scale;
22+
transition-property: background-color, border, box-shadow, color, opacity, scale;
2323

2424
@media (any-hover: hover) {
2525
&:hover {

app/assets/stylesheets/card-columns.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,16 @@
185185
.cards__transition-container {
186186
block-size: 100%;
187187
border-radius: calc(var(--column-width-collapsed) / 2);
188-
translate: 0 0.5ch; /* Allow a little room for the mini bubble */
188+
margin-block-start: 0.5ch; /* Allow a little room for the mini bubble */
189189
transition: translate var(--column-transition-duration) var(--ease-out-overshoot-subtle);
190190

191191
@media (min-width: 640px) {
192192
.is-expanded & {
193-
translate: 0 0.5ch; /* Allow a little room for the mini bubble */
193+
translate: 0; /* Animate back from collapsed state */
194194
}
195195

196196
.is-collapsed & {
197+
margin-block-start: 0;
197198
translate: 0 var(--column-width-collapsed);
198199
}
199200
}

0 commit comments

Comments
 (0)