Skip to content

Commit 2b56e54

Browse files
authored
fix: Keep CopyToClipboard swap icons stacked regardless of CSS load (#5235)
1 parent a8477f0 commit 2b56e54

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎src/copy-to-clipboard/styles.scss‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@
1919
inset: 0;
2020
}
2121

22-
.icon-swap-copy,
23-
.icon-swap-result {
24-
position: absolute;
25-
inset-block-start: 0;
26-
inset-inline-start: 0;
27-
}
28-
2922
.icon-swap-copy {
3023
opacity: 1;
3124
transform: scale(1);
@@ -38,6 +31,13 @@
3831
@include motion.exiting-with-motion;
3932
}
4033

34+
.icon-swap > .icon-swap-copy,
35+
.icon-swap > .icon-swap-result {
36+
position: absolute;
37+
inset-block-start: 0;
38+
inset-inline-start: 0;
39+
}
40+
4141
.icon-swap-copied > .icon-swap-copy {
4242
opacity: 0;
4343
transform: scale(0);

0 commit comments

Comments
 (0)