Skip to content

Commit 633dbc8

Browse files
committed
MOBILE-4653 mod-icon: Fix for iOS rendering bug with icon filter
1 parent 969c5ad commit 633dbc8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/core/components/mod-icon/mod-icon.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
background-color: transparent;
2424
line-height: var(--size);
2525

26+
/* Fix for iOS rendering bug: when combining filter and margin
27+
with a nearby overflow: scroll element, the filter may render incorrectly.
28+
Applying transform: translateZ(0) forces proper GPU compositing. */
29+
transform: translateZ(0);
30+
2631
&.colorize {
2732
&.version_current {
2833
@each $type, $value in $activity-icon-color-filters {

0 commit comments

Comments
 (0)