File tree Expand file tree Collapse file tree 3 files changed +17
-7
lines changed
src/components/fields/RadioGroup Expand file tree Collapse file tree 3 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @cube-dev/ui-kit ' : patch
3+ ---
4+
5+ Fix Radio.Button styles.
Original file line number Diff line number Diff line change @@ -77,20 +77,22 @@ const RadioButtonElement = tasty({
7777 '' : '#white' ,
7878 hovered : '#purple-text.04' ,
7979 checked : '#white' ,
80- disabled : '#dark.04 ' ,
80+ disabled : '#light ' ,
8181 } ,
8282 color : {
8383 '' : '#dark.85' ,
8484 invalid : '#danger-text' ,
85- disabled : '#dark.40' ,
85+ checked : '#purple-text' ,
86+ disabled : '#dark-04' ,
87+ 'disabled & checked' : '#dark-02' ,
8688 } ,
8789 preset : 't3m' ,
8890 border : {
8991 '' : '#dark-05' ,
9092 checked : '#purple-text' ,
9193 'invalid & checked' : '#danger-text' ,
92- 'disabled & checked' : '#dark.40' ,
9394 disabled : '#dark-05' ,
95+ 'disabled & checked' : '#dark-03' ,
9496 } ,
9597 padding : '(.75x - 1bw) (1.25x - 1bw)' ,
9698 cursor : 'pointer' ,
@@ -123,7 +125,7 @@ const RadioNormalElement = tasty({
123125 'disabled & checked' : '#dark.12' ,
124126 } ,
125127 border : {
126- '' : '#dark.30 ' ,
128+ '' : '#border-opaque ' ,
127129 checked : '#purple-text' ,
128130 invalid : '#danger-text.50' ,
129131 disabled : '#dark.12' ,
Original file line number Diff line number Diff line change @@ -31,14 +31,14 @@ export default {
3131} ;
3232
3333const Template : StoryFn < CubeRadioGroupProps > = ( args ) => (
34- < Radio . Group { ...args } >
34+ < Radio . Group defaultValue = "yes" { ...args } >
3535 < Radio value = "yes" > Yes</ Radio >
3636 < Radio value = "no" > No</ Radio >
3737 </ Radio . Group >
3838) ;
3939
4040const RadioButtonsTemplate : StoryFn < CubeRadioGroupProps > = ( args ) => (
41- < Radio . Group { ...args } >
41+ < Radio . Group defaultValue = "yes" { ...args } >
4242 < Radio . Button value = "yes" > Yes</ Radio . Button >
4343 < Radio type = "button" value = "no" >
4444 No
@@ -47,7 +47,7 @@ const RadioButtonsTemplate: StoryFn<CubeRadioGroupProps> = (args) => (
4747) ;
4848
4949const SolidRadioButtonsTemplate : StoryFn < CubeRadioGroupProps > = ( args ) => (
50- < Radio . ButtonGroup { ...args } defaultValue = "no" >
50+ < Radio . ButtonGroup defaultValue = "no" { ...args } >
5151 < Radio . Button value = "yes" > Yes</ Radio . Button >
5252 < Radio . Button value = "no" > No</ Radio . Button >
5353 < Radio . Button value = "maybe" > Maybe</ Radio . Button >
@@ -99,3 +99,6 @@ RadioGroupWithLabelAndSuffix.args = {
9999} ;
100100
101101export const SolidRadioButtons = SolidRadioButtonsTemplate . bind ( { } ) ;
102+
103+ export const SolidRadioButtonsDisabled = SolidRadioButtonsTemplate . bind ( { } ) ;
104+ SolidRadioButtonsDisabled . args = { isDisabled : true } ;
You can’t perform that action at this time.
0 commit comments