Skip to content

Commit

Permalink
Merge 0d8f221 into 2b14779
Browse files Browse the repository at this point in the history
  • Loading branch information
radglob authored Apr 18, 2023
2 parents 2b14779 + 0d8f221 commit 5eca63f
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 0 deletions.
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.
6 changes: 6 additions & 0 deletions src/Button/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ export const getVariantStyles = (variant: VariantType = 'default', theme?: Theme
'&:has([data-component="ButtonCounter"])': {
color: 'accent.fg',
},
'&:disabled[data-no-visuals]': {
color: 'primer.fg.disabled',
'[data-component=ButtonCounter]': {
color: 'inherit',
},
},
},
outline: {
color: 'btn.outline.text',
Expand Down
8 changes: 8 additions & 0 deletions src/__tests__/__snapshots__/Button.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1627,6 +1627,14 @@ exports[`Button styles invisible button appropriately 1`] = `
color: accent.fg;
}
.c0:disabled[data-no-visuals] {
color: primer.fg.disabled;
}
.c0:disabled[data-no-visuals] [data-component=ButtonCounter] {
color: inherit;
}
@media (forced-colors:active) {
.c0:focus {
outline: solid 1px transparent;
Expand Down
24 changes: 24 additions & 0 deletions src/__tests__/__snapshots__/TextInput.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1469,6 +1469,14 @@ exports[`TextInput renders trailingAction icon button 1`] = `
color: #0969da;
}
.c4:disabled[data-no-visuals] {
color: #8c959f;
}
.c4:disabled[data-no-visuals] [data-component=ButtonCounter] {
color: inherit;
}
.c4[data-size="small"][data-no-visuals="true"] {
padding-top: 2px;
padding-right: 4px;
Expand Down Expand Up @@ -2108,6 +2116,14 @@ exports[`TextInput renders trailingAction text button 1`] = `
color: #0969da;
}
.c3:disabled[data-no-visuals] {
color: #8c959f;
}
.c3:disabled[data-no-visuals] [data-component=ButtonCounter] {
color: inherit;
}
.c3[data-no-visuals="true"] {
padding-top: 2px;
padding-right: 4px;
Expand Down Expand Up @@ -2502,6 +2518,14 @@ exports[`TextInput renders trailingAction text button with a tooltip 1`] = `
color: #0969da;
}
.c4:disabled[data-no-visuals] {
color: #8c959f;
}
.c4:disabled[data-no-visuals] [data-component=ButtonCounter] {
color: inherit;
}
.c4[data-no-visuals="true"] {
padding-top: 2px;
padding-right: 4px;
Expand Down

0 comments on commit 5eca63f

Please sign in to comment.