Skip to content

Commit

Permalink
[Button] Fix specificity issue with loading styles
Browse files Browse the repository at this point in the history
  • Loading branch information
laurkim committed Aug 16, 2023
1 parent e74b708 commit 100a2b7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions polaris-react/src/components/Button/Button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -335,11 +335,6 @@
&::before {
display: none;
}

svg {
// stylelint-disable-next-line polaris/conventions/polaris/custom-property-allowed-list, declaration-no-important -- override Spinner fill color
fill: var(--pc-button-text) !important;
}
}

&.destructive,
Expand Down Expand Up @@ -690,7 +685,12 @@
}

.loading.disabled svg {
fill: var(--p-color-icon-subdued);
fill: var(--p-color-bg-interactive);
}

.primary.disabled svg {
// stylelint-disable-next-line polaris/conventions/polaris/custom-property-allowed-list -- override Spinner fill color
fill: var(--pc-button-text);
}

// The way the designs work, we need to do lots of reaching down to
Expand Down

0 comments on commit 100a2b7

Please sign in to comment.