Icon bug: Using information--filled
and closed
icons together causes the info icon to render incorrectly
#5568
Closed
2 of 3 tasks
Labels
What package(s) are you using?
carbon-components
version 10.10.1@carbon/icons
version 10.9.1carbon-components-react
Detailed description
We are using icons from
@carbon/icons
version 10.9.1 (latest at time of writing) in a vanilla js/css environment. We havecarbon-components
version 10.10.1.We are inlining our SVGs straight from the package using the inline_svg gem.
When rendering an inline notification that has both the
information--filled
andclosed
icon in it, the styles of the two interact badly and produce the following:The info icon is a dark grey square.
Specifically, the style block embedded in the close icon specifies
.cls-1{fill:#231f20;}
while the style block in the info icon specifies.cls-1{fill:none;}
. One is overriding the other leading to the transparent rectangle around the info icon to be filled grey.I am able to reproduce this issue in FireFox 72 and Chrome 80
Steps to reproduce the issue
information--filled
andclose
icons inlined directly from the@carbon/icons
package.Codesandbox demonstrating the issue: https://codesandbox.io/s/wizardly-bhabha-igb9x
Additional information
None
The text was updated successfully, but these errors were encountered: