Skip to content

Commit

Permalink
fix: partial fix for shadow dom rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
sghoweri committed Dec 9, 2019
1 parent 3eed559 commit 1d03ac9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/components/bolt-icon/src/icon.standalone.js
Expand Up @@ -2,6 +2,7 @@ import {
colorContrast,
css,
define,
hasNativeShadowDomSupport,
props,
rgb2hex,
supportsCSSVars,
Expand Down Expand Up @@ -107,6 +108,8 @@ class BoltIcon extends withPreact() {

return (
<span className={classes}>
{hasNativeShadowDomSupport &&
this.getRootNode() instanceof ShadowRoot && <style>{styles[0][1]}</style>}
{DefaultIcon ? (
<DefaultIcon
className={iconClasses}
Expand Down

0 comments on commit 1d03ac9

Please sign in to comment.