diff --git a/source/_patterns/00-base/icons/_icons.helpers.scss b/source/_patterns/00-base/icons/_icons.helpers.scss index dfb8da8add..4ec8de0afd 100644 --- a/source/_patterns/00-base/icons/_icons.helpers.scss +++ b/source/_patterns/00-base/icons/_icons.helpers.scss @@ -6,6 +6,11 @@ $position: "before", $partial: false ) { + // We're setting this on the parent tag, so that it could get overwritten via data-icon=* + @if $glyph != "" { + --icon-glyph: "#{$glyph}"; + } + &::#{$position} { --icon-font-family: "#{"icons-" + $size + "-" + $style}", "missing-icons" !important; @@ -25,9 +30,6 @@ ); } - @if $glyph != "" { - --icon-glyph: "#{$glyph}"; - } @if $partial { content: var(--icon-glyph); display: inline-block;