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 6, 2024
1 parent 56b945a commit 3df3bde
Show file tree
Hide file tree
Showing 2 changed files with 9 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;
}
}
}

0 comments on commit 3df3bde

Please sign in to comment.