Skip to content

Commit e213c33

Browse files
committed
make sure icons don't get squashed when used in showcase sf
1 parent b76a7e9 commit e213c33

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tbx/static_src/sass/components/_animated-icon.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
align-items: center;
1010
gap: 3px;
1111
transition: transform $transition;
12-
flex-shrink: 0;
1312

1413
@include reduced-motion() {
1514
transition: none;
@@ -46,7 +45,6 @@
4645
display: inline-block;
4746
width: 65px;
4847
height: 65px;
49-
flex-shrink: 0;
5048

5149
#{$root}__head {
5250
position: absolute;
@@ -133,7 +131,6 @@
133131
display: flex;
134132
align-items: center;
135133
justify-content: center;
136-
flex-shrink: 0;
137134

138135
#{$root}__center {
139136
position: absolute;
@@ -234,4 +231,9 @@
234231
}
235232
}
236233
}
234+
235+
// Make sure they don't get squashed when used in the showcase sf
236+
.showcase & {
237+
flex-shrink: 0;
238+
}
237239
}

0 commit comments

Comments
 (0)