diff --git a/packages/components/src/components/button/_button.scss b/packages/components/src/components/button/_button.scss index a842a4bad2c3..aaf94fe45f59 100644 --- a/packages/components/src/components/button/_button.scss +++ b/packages/components/src/components/button/_button.scss @@ -162,11 +162,6 @@ } } - .#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--btn--ghost:focus svg, - .#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--btn--ghost:hover svg { - fill: $icon-01; - } - .#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger:focus { border-color: $focus; @@ -224,8 +219,6 @@ .#{$prefix}--btn__icon, .#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--btn--ghost:hover .#{$prefix}--btn__icon { - fill: $icon-01; - // Windows, Firefox HCM Fix @media screen and (-ms-high-contrast: active), screen and (prefers-contrast) { @@ -238,7 +231,7 @@ .#{$prefix}--btn--ghost.#{$prefix}--btn--icon-only .#{$prefix}--btn__icon - path, + path:not([data-icon-path]), .#{$prefix}--btn--ghost.#{$prefix}--btn--icon-only .#{$prefix}--btn__icon { fill: $icon-01; } diff --git a/packages/components/src/components/button/_mixins.scss b/packages/components/src/components/button/_mixins.scss index b8c9b306a354..e2df2b53f4bf 100644 --- a/packages/components/src/components/button/_mixins.scss +++ b/packages/components/src/components/button/_mixins.scss @@ -96,7 +96,7 @@ } .#{$prefix}--btn__icon, - .#{$prefix}--btn__icon path { + .#{$prefix}--btn__icon path:not([data-icon-path]) { fill: $icon-color; } }