Skip to content

Commit

Permalink
fix(button): update icon only button styles to use fg muted (#4364)
Browse files Browse the repository at this point in the history
* fix(button): update icon only button styles to use fg muted

* chore: add changeset

* test(vrt): update snapshots

* test: update snapshots

* test(vrt): update snapshots

---------

Co-authored-by: Josh Black <joshblack@users.noreply.github.com>
  • Loading branch information
joshblack and joshblack committed Mar 12, 2024
1 parent 6d88f92 commit 2f65ea5
Show file tree
Hide file tree
Showing 88 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/silly-geese-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': minor
---

Update IconButton default color to use fgColor-muted
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,10 @@ exports[`Button respects block prop 1`] = `
color: var(--button-color,undefined);
}
.c0[data-component="IconButton"][data-no-visuals] {
color: fg.muted;
}
@media (forced-colors:active) {
.c0:focus {
outline: solid 1px transparent;
Expand Down Expand Up @@ -487,6 +491,10 @@ exports[`Button respects the alignContent prop 1`] = `
color: var(--button-color,undefined);
}
.c0[data-component="IconButton"][data-no-visuals] {
color: fg.muted;
}
@media (forced-colors:active) {
.c0:focus {
outline: solid 1px transparent;
Expand Down Expand Up @@ -742,6 +750,10 @@ exports[`Button respects the large size prop 1`] = `
color: var(--button-color,undefined);
}
.c0[data-component="IconButton"][data-no-visuals] {
color: fg.muted;
}
@media (forced-colors:active) {
.c0:focus {
outline: solid 1px transparent;
Expand Down Expand Up @@ -998,6 +1010,10 @@ exports[`Button respects the small size prop 1`] = `
color: var(--button-color,undefined);
}
.c0[data-component="IconButton"][data-no-visuals] {
color: fg.muted;
}
@media (forced-colors:active) {
.c0:focus {
outline: solid 1px transparent;
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/Button/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ export const getVariantStyles = (variant: VariantType = 'default', theme?: Theme
'[data-component=ButtonCounter]': {
backgroundColor: 'btn.counterBg',
},
'&[data-component="IconButton"][data-no-visuals]': {
color: 'fg.muted',
},
},
primary: {
color: 'btn.primary.text',
Expand Down

0 comments on commit 2f65ea5

Please sign in to comment.