Skip to content

Commit

Permalink
change operator used in SVG filter for tintColor from atop to in
Browse files Browse the repository at this point in the history
  • Loading branch information
karlsander authored and necolas committed Oct 15, 2024
1 parent e922224 commit 72a74d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ exports[`components/Image prop "style" removes other unsupported View styles 1`]
/>
<fecomposite
in2="SourceAlpha"
operator="atop"
operator="in"
/>
</filter>
</defs>
Expand Down Expand Up @@ -410,7 +410,7 @@ exports[`components/Image prop "tintColor" convert to filter 1`] = `
/>
<fecomposite
in2="SourceAlpha"
operator="atop"
operator="in"
/>
</filter>
</defs>
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-web/src/exports/Image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function createTintColorSVG(tintColor, id) {
<defs>
<filter id={`tint-${id}`} suppressHydrationWarning={true}>
<feFlood floodColor={`${tintColor}`} key={tintColor} />
<feComposite in2="SourceAlpha" operator="atop" />
<feComposite in2="SourceAlpha" operator="in" />
</filter>
</defs>
</svg>
Expand Down

0 comments on commit 72a74d2

Please sign in to comment.