Skip to content

Commit

Permalink
fix(button): avoid overriding styles on SVGS with paths
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Jan 22, 2021
1 parent 411832a commit ee282b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions packages/components/src/components/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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) {
Expand All @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/button/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
}

.#{$prefix}--btn__icon,
.#{$prefix}--btn__icon path {
.#{$prefix}--btn__icon path:not([data-icon-path]) {
fill: $icon-color;
}
}
Expand Down

0 comments on commit ee282b7

Please sign in to comment.