@@ -22,10 +22,8 @@ export const getVariantStyles = (variant: VariantType = 'default', theme?: Theme
22
22
} ,
23
23
'&:disabled' : {
24
24
color : 'primer.fg.disabled' ,
25
- backgroundColor : 'btn.disabledBg' ,
26
- '[data-component="ButtonCounter"]' : {
27
- backgroundColor : 'btn.disableBg' ,
28
- color : 'primer.fg.disabled'
25
+ '[data-component=ButtonCounter]' : {
26
+ color : 'inherit'
29
27
}
30
28
} ,
31
29
'&[aria-expanded=true]' : {
@@ -53,11 +51,11 @@ export const getVariantStyles = (variant: VariantType = 'default', theme?: Theme
53
51
'&:disabled' : {
54
52
color : 'btn.primary.disabledText' ,
55
53
backgroundColor : 'btn.primary.disabledBg' ,
56
- '[data-component=" ButtonCounter" ]' : {
57
- color : 'btn.primary.disabledText '
54
+ '[data-component=ButtonCounter]' : {
55
+ color : 'inherit '
58
56
}
59
57
} ,
60
- '[data-component=" ButtonCounter" ]' : {
58
+ '[data-component=ButtonCounter]' : {
61
59
backgroundColor : 'btn.primary.counterBg' ,
62
60
color : 'btn.primary.text'
63
61
} ,
@@ -75,7 +73,7 @@ export const getVariantStyles = (variant: VariantType = 'default', theme?: Theme
75
73
backgroundColor : 'btn.danger.hoverBg' ,
76
74
borderColor : 'btn.danger.hoverBorder' ,
77
75
boxShadow : `${ theme ?. shadows . btn . danger . hoverShadow } ` ,
78
- '[data-component=" ButtonCounter" ]' : {
76
+ '[data-component=ButtonCounter]' : {
79
77
backgroundColor : 'btn.danger.hoverCounterBg' ,
80
78
color : 'btn.danger.hoverText'
81
79
}
@@ -95,12 +93,12 @@ export const getVariantStyles = (variant: VariantType = 'default', theme?: Theme
95
93
color : 'btn.danger.disabledText' ,
96
94
backgroundColor : 'btn.danger.disabledBg' ,
97
95
borderColor : 'btn.danger.disabledBorder' ,
98
- '[data-component=" ButtonCounter" ]' : {
99
- color : 'btn.danger.disabledText ' ,
96
+ '[data-component=ButtonCounter]' : {
97
+ color : 'inherit ' ,
100
98
backgroundColor : 'btn.danger.disabledCounterBg'
101
99
}
102
100
} ,
103
- '[data-component=" ButtonCounter" ]' : {
101
+ '[data-component=ButtonCounter]' : {
104
102
color : 'btn.danger.text' ,
105
103
backgroundColor : 'btn.danger.counterBg'
106
104
} ,
@@ -128,8 +126,8 @@ export const getVariantStyles = (variant: VariantType = 'default', theme?: Theme
128
126
} ,
129
127
'&:disabled' : {
130
128
color : 'primer.fg.disabled' ,
131
- '[data-component=" ButtonCounter" ]' : {
132
- color : 'primer.fg.disabled '
129
+ '[data-component=ButtonCounter]' : {
130
+ color : 'inherit '
133
131
}
134
132
} ,
135
133
'&[aria-expanded=true]' : {
@@ -147,9 +145,9 @@ export const getVariantStyles = (variant: VariantType = 'default', theme?: Theme
147
145
backgroundColor : 'btn.outline.hoverBg' ,
148
146
borderColor : 'outline.hoverBorder' ,
149
147
boxShadow : `${ theme ?. shadows . btn . outline . hoverShadow } ` ,
150
- '[data-component=" ButtonCounter" ]' : {
148
+ '[data-component=ButtonCounter]' : {
151
149
backgroundColor : 'btn.outline.hoverCounterBg' ,
152
- color : 'btn.outline.hoverText '
150
+ color : 'inherit '
153
151
}
154
152
} ,
155
153
// focus must come before :active so that the active box shadow overrides
@@ -169,12 +167,12 @@ export const getVariantStyles = (variant: VariantType = 'default', theme?: Theme
169
167
color : 'btn.outline.disabledText' ,
170
168
backgroundColor : 'btn.outline.disabledBg' ,
171
169
borderColor : 'btn.border' ,
172
- '[data-component=" ButtonCounter" ]' : {
170
+ '[data-component=ButtonCounter]' : {
173
171
backgroundColor : 'btn.outline.disabledCounterBg' ,
174
- color : 'btn.outline.disabledText '
172
+ color : 'inherit '
175
173
}
176
174
} ,
177
- '[data-component=" ButtonCounter" ]' : {
175
+ '[data-component=ButtonCounter]' : {
178
176
backgroundColor : 'btn.outline.counterBg' ,
179
177
color : 'btn.outline.text'
180
178
} ,
@@ -224,7 +222,7 @@ export const getSizeStyles = (size = 'medium', variant: VariantType = 'default',
224
222
paddingY : `${ paddingY } px` ,
225
223
paddingX : `${ paddingX } px` ,
226
224
fontSize,
227
- '[data-component=" ButtonCounter" ]' : {
225
+ '[data-component=ButtonCounter]' : {
228
226
fontSize
229
227
}
230
228
}
0 commit comments