Skip to content

Commit

Permalink
fix(button -> negative): corrects interior label background color to …
Browse files Browse the repository at this point in the history
…align with parent
  • Loading branch information
cdransf committed Sep 10, 2024
1 parent c0f5111 commit a67009e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/little-cows-hang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@spectrum-css/button": minor
---

Apples forced-color-adjust: none to align the rendered background of the child label for negative button varient with the enclosing button's background color.
4 changes: 4 additions & 0 deletions components/button/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -335,5 +335,9 @@ a.spectrum-Button {
forced-color-adjust: none;
}
}

&.spectrum-Button--negative .spectrum-Button-label {
forced-color-adjust: none;
}
}
}
1 change: 1 addition & 0 deletions components/button/metadata/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
".spectrum-Button.spectrum-Button--iconOnly .spectrum-Icon",
".spectrum-Button.spectrum-Button--iconOnly:after",
".spectrum-Button.spectrum-Button--negative",
".spectrum-Button.spectrum-Button--negative .spectrum-Button-label",
".spectrum-Button.spectrum-Button--negative.spectrum-Button--outline",
".spectrum-Button.spectrum-Button--primary",
".spectrum-Button.spectrum-Button--primary.spectrum-Button--outline",
Expand Down

0 comments on commit a67009e

Please sign in to comment.