Skip to content

Commit

Permalink
Bug fix: Button loading spinner color (#4941)
Browse files Browse the repository at this point in the history
* fix

* Create calm-forks-pull.md

* test(vrt): update snapshots

* snippy snappers

---------

Co-authored-by: langermank <[email protected]>
  • Loading branch information
langermank and langermank authored Sep 9, 2024
1 parent 2f8d864 commit 80fe025
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-forks-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Bug fix: Button loading spinner color
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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 @@ -257,6 +257,7 @@ exports[`Button respects block prop 1`] = `
grid-area: text;
margin-right: 0px !important;
place-self: center;
color: fg.muted;
}
.c0 [data-component="loadingSpinner"] + [data-component="text"] {
Expand Down Expand Up @@ -573,6 +574,7 @@ exports[`Button respects the alignContent prop 1`] = `
grid-area: text;
margin-right: 0px !important;
place-self: center;
color: fg.muted;
}
.c0 [data-component="loadingSpinner"] + [data-component="text"] {
Expand Down Expand Up @@ -888,6 +890,7 @@ exports[`Button respects the large size prop 1`] = `
grid-area: text;
margin-right: 0px !important;
place-self: center;
color: fg.muted;
}
.c0 [data-component="loadingSpinner"] + [data-component="text"] {
Expand Down Expand Up @@ -1204,6 +1207,7 @@ exports[`Button respects the small size prop 1`] = `
grid-area: text;
margin-right: 0px !important;
place-self: center;
color: fg.muted;
}
.c0 [data-component="loadingSpinner"] + [data-component="text"] {
Expand Down Expand Up @@ -1522,6 +1526,7 @@ exports[`Button styles danger button appropriately 1`] = `
grid-area: text;
margin-right: 0px !important;
place-self: center;
color: fg.muted;
}
.c0 [data-component="loadingSpinner"] + [data-component="text"] {
Expand Down Expand Up @@ -1840,6 +1845,7 @@ exports[`Button styles invisible button appropriately 1`] = `
grid-area: text;
margin-right: 0px !important;
place-self: center;
color: fg.muted;
}
.c0 [data-component="loadingSpinner"] + [data-component="text"] {
Expand Down Expand Up @@ -2163,6 +2169,7 @@ exports[`Button styles primary button appropriately 1`] = `
grid-area: text;
margin-right: 0px !important;
place-self: center;
color: fg.muted;
}
.c0 [data-component="loadingSpinner"] + [data-component="text"] {
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/Button/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ export const getButtonStyles = (theme?: Theme) => {
gridArea: 'text',
marginRight: '0px !important',
placeSelf: 'center',
color: 'fg.muted',
},
'[data-component="loadingSpinner"] + [data-component="text"]': {
visibility: 'hidden',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1921,6 +1921,7 @@ exports[`TextInput renders trailingAction icon button 1`] = `
grid-area: text;
margin-right: 0px !important;
place-self: center;
color: var(--fgColor-muted,var(--color-fg-muted,#656d76));
}
.c4 [data-component="loadingSpinner"] + [data-component="text"] {
Expand Down Expand Up @@ -2552,6 +2553,7 @@ exports[`TextInput renders trailingAction text button 1`] = `
grid-area: text;
margin-right: 0px !important;
place-self: center;
color: var(--fgColor-muted,var(--color-fg-muted,#656d76));
}
.c4 [data-component="loadingSpinner"] + [data-component="text"] {
Expand Down Expand Up @@ -3044,6 +3046,7 @@ exports[`TextInput renders trailingAction text button with a tooltip 1`] = `
grid-area: text;
margin-right: 0px !important;
place-self: center;
color: var(--fgColor-muted,var(--color-fg-muted,#656d76));
}
.c4 [data-component="loadingSpinner"] + [data-component="text"] {
Expand Down

0 comments on commit 80fe025

Please sign in to comment.