@@ -22,7 +22,11 @@ export const getVariantStyles = (variant: VariantType = 'default', theme?: Theme
2222 } ,
2323 '&:disabled' : {
2424 color : 'primer.fg.disabled' ,
25- backgroundColor : 'btn.disabledBg'
25+ backgroundColor : 'btn.disabledBg' ,
26+ '[data-component="ButtonCounter"]' : {
27+ backgroundColor : 'btn.disableBg' ,
28+ color : 'primer.fg.disabled'
29+ }
2630 } ,
2731 '&[aria-expanded=true]' : {
2832 backgroundColor : 'btn.activeBg' ,
@@ -48,7 +52,10 @@ export const getVariantStyles = (variant: VariantType = 'default', theme?: Theme
4852 } ,
4953 '&:disabled' : {
5054 color : 'btn.primary.disabledText' ,
51- backgroundColor : 'btn.primary.disabledBg'
55+ backgroundColor : 'btn.primary.disabledBg' ,
56+ '[data-component="ButtonCounter"]' : {
57+ color : 'btn.primary.disabledText'
58+ }
5259 } ,
5360 '[data-component="ButtonCounter"]' : {
5461 backgroundColor : 'btn.primary.counterBg' ,
@@ -89,6 +96,7 @@ export const getVariantStyles = (variant: VariantType = 'default', theme?: Theme
8996 backgroundColor : 'btn.danger.disabledBg' ,
9097 borderColor : 'btn.danger.disabledBorder' ,
9198 '[data-component="ButtonCounter"]' : {
99+ color : 'btn.danger.disabledText' ,
92100 backgroundColor : 'btn.danger.disabledCounterBg'
93101 }
94102 } ,
@@ -119,7 +127,10 @@ export const getVariantStyles = (variant: VariantType = 'default', theme?: Theme
119127 backgroundColor : 'btn.selectedBg'
120128 } ,
121129 '&:disabled' : {
122- color : 'primer.fg.disabled'
130+ color : 'primer.fg.disabled' ,
131+ '[data-component="ButtonCounter"]' : {
132+ color : 'primer.fg.disabled'
133+ }
123134 } ,
124135 '&[aria-expanded=true]' : {
125136 backgroundColor : 'btn.selectedBg'
@@ -159,7 +170,8 @@ export const getVariantStyles = (variant: VariantType = 'default', theme?: Theme
159170 backgroundColor : 'btn.outline.disabledBg' ,
160171 borderColor : 'btn.border' ,
161172 '[data-component="ButtonCounter"]' : {
162- backgroundColor : 'btn.outline.disabledCounterBg'
173+ backgroundColor : 'btn.outline.disabledCounterBg' ,
174+ color : 'btn.outline.disabledText'
163175 }
164176 } ,
165177 '[data-component="ButtonCounter"]' : {
0 commit comments