Skip to content

Commit

Permalink
fix(ui-library): removed readonly state for checkbox radio radiogroup…
Browse files Browse the repository at this point in the history
… and toggle switch (#1167)

* fix(ui-library): removed readonly state for checkbox radio radiogroup and toggle switch

* rmv readonly tokens from checkbox, radio, radiogroup and toggleswitch

* fixes radio css

---------

Co-authored-by: Lars Erbach <[email protected]>
  • Loading branch information
ashk1996 and larserbach authored Oct 7, 2024
1 parent 6f91b28 commit 9f9585c
Show file tree
Hide file tree
Showing 19 changed files with 36 additions and 759 deletions.
79 changes: 0 additions & 79 deletions packages/figma-design-tokens/input/tokens/$themes.json

Large diffs are not rendered by default.

48 changes: 0 additions & 48 deletions packages/figma-design-tokens/input/tokens/cmp/borders.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,6 @@
"style": "solid"
}
},
"readonly": {
"$type": "border",
"$value": {
"color": "{cmp.radio.control.container.bordercolor.active.readonly}",
"width": "{cmp.radio.control.container.borderwidth.sm.active.readonly}",
"style": "solid"
}
},
"error": {
"$type": "border",
"$value": {
Expand Down Expand Up @@ -104,14 +96,6 @@
"style": "solid"
}
},
"readonly": {
"$type": "border",
"$value": {
"color": "{cmp.radio.control.container.bordercolor.inactive.readonly}",
"width": "{cmp.radio.control.container.borderwidth.sm.inactive.readonly}",
"style": "solid"
}
},
"error": {
"$type": "border",
"$value": {
Expand Down Expand Up @@ -164,14 +148,6 @@
"style": "solid"
}
},
"readonly": {
"$type": "border",
"$value": {
"color": "{cmp.radio.control.container.bordercolor.active.readonly}",
"width": "{cmp.radio.control.container.borderwidth.md.active.readonly}",
"style": "solid"
}
},
"error": {
"$type": "border",
"$value": {
Expand Down Expand Up @@ -222,14 +198,6 @@
"style": "solid"
}
},
"readonly": {
"$type": "border",
"$value": {
"color": "{cmp.radio.control.container.bordercolor.inactive.readonly}",
"width": "{cmp.radio.control.container.borderwidth.md.inactive.readonly}",
"style": "solid"
}
},
"error": {
"$type": "border",
"$value": {
Expand Down Expand Up @@ -282,14 +250,6 @@
"style": "solid"
}
},
"readonly": {
"$type": "border",
"$value": {
"color": "{cmp.radio.control.container.bordercolor.active.readonly}",
"width": "{cmp.radio.control.container.borderwidth.lg.active.readonly}",
"style": "solid"
}
},
"error": {
"$type": "border",
"$value": {
Expand Down Expand Up @@ -340,14 +300,6 @@
"style": "solid"
}
},
"readonly": {
"$type": "border",
"$value": {
"color": "{cmp.radio.control.container.bordercolor.inactive.readonly}",
"width": "{cmp.radio.control.container.borderwidth.lg.inactive.readonly}",
"style": "solid"
}
},
"error": {
"$type": "border",
"$value": {
Expand Down
110 changes: 0 additions & 110 deletions packages/figma-design-tokens/input/tokens/cmp/color.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@
"$value": "{sys.bgcolor.bold.disabled}",
"$description": "also applies to indeterminate"
},
"readonly": {
"$type": "color",
"$value": "{sys.bgcolor.bold.disabled}",
"$description": "also applies to indeterminate"
},
"error": {
"$type": "color",
"$value": "{sys.bgcolor.bold.danger.rest}",
Expand Down Expand Up @@ -74,11 +69,6 @@
"$value": "{sys.bgcolor.inverse.disabled}",
"$description": "also applies to indeterminate"
},
"readonly": {
"$type": "color",
"$value": "{sys.bgcolor.inverse.disabled}",
"$description": "also applies to indeterminate"
},
"error": {
"$type": "color",
"$value": "{sys.bgcolor.inverse.rest}",
Expand Down Expand Up @@ -113,11 +103,6 @@
"$value": "{sys.bordercolor.bold.disabled}",
"$description": "also applies to indeterminate"
},
"readonly": {
"$type": "color",
"$value": "{sys.bordercolor.bold.disabled}",
"$description": "also applies to indeterminate"
},
"error": {
"$type": "color",
"$value": "{sys.bordercolor.bold.danger.rest}",
Expand Down Expand Up @@ -150,11 +135,6 @@
"$value": "{sys.bordercolor.inverse.disabled}",
"$description": "also applies to indeterminate"
},
"readonly": {
"$type": "color",
"$value": "{sys.bordercolor.inverse.disabled}",
"$description": "also applies to indeterminate"
},
"error": {
"$type": "color",
"$value": "{sys.bgcolor.bold.danger.rest}",
Expand Down Expand Up @@ -191,11 +171,6 @@
"$value": "{sys.content.bold.disabled.regular}",
"$description": "also applies to indeterminate"
},
"readonly": {
"$type": "color",
"$value": "{sys.content.bold.disabled.regular}",
"$description": "also applies to indeterminate"
},
"error": {
"$type": "color",
"$value": "{sys.content.bold.danger.regular}",
Expand Down Expand Up @@ -228,11 +203,6 @@
"$value": "{sys.content.inverse.transparent}",
"$description": "also applies to indeterminate"
},
"readonly": {
"$type": "color",
"$value": "{sys.content.inverse.transparent}",
"$description": "also applies to indeterminate"
},
"error": {
"$type": "color",
"$value": "{sys.content.inverse.transparent}",
Expand Down Expand Up @@ -739,11 +709,6 @@
"$value": "{sys.bgcolor.bold.disabled}",
"$description": "forms.radio.control.background.unselected.fill.disabled"
},
"readonly": {
"$type": "color",
"$value": "{sys.bgcolor.bold.disabled}",
"$description": "forms.radio.control.background.unselected.fill.readonly"
},
"error": {
"$type": "color",
"$value": "{sys.bgcolor.bold.danger.rest}",
Expand Down Expand Up @@ -776,11 +741,6 @@
"$value": "{sys.bgcolor.bold.disabled}",
"$description": "forms.radio.control.background.selected.fill.disabled"
},
"readonly": {
"$type": "color",
"$value": "{sys.bgcolor.bold.disabled}",
"$description": "forms.radio.control.background.selected.fill.readonly"
},
"error": {
"$type": "color",
"$value": "{sys.bgcolor.bold.danger.rest}",
Expand Down Expand Up @@ -815,11 +775,6 @@
"$value": "{sys.bgcolor.bold.disabled}",
"$description": "forms.radio.control.background.unselected.fill.disabled"
},
"readonly": {
"$type": "color",
"$value": "{sys.bgcolor.bold.disabled}",
"$description": "forms.radio.control.background.unselected.fill.readonly"
},
"error": {
"$type": "color",
"$value": "{sys.bgcolor.bold.danger.rest}",
Expand Down Expand Up @@ -852,11 +807,6 @@
"$value": "{sys.bgcolor.bold.disabled}",
"$description": "forms.radio.control.background.selected.fill.disabled"
},
"readonly": {
"$type": "color",
"$value": "{sys.bgcolor.bold.disabled}",
"$description": "forms.radio.control.background.selected.fill.readonly"
},
"error": {
"$type": "color",
"$value": "{sys.bgcolor.bold.danger.rest}",
Expand Down Expand Up @@ -893,11 +843,6 @@
"$value": "{sys.content.bold.disabled.regular}",
"$description": "forms.radio.control.foreground.unselected.fill.disabled"
},
"readonly": {
"$type": "color",
"$value": "{sys.content.bold.disabled.regular}",
"$description": "forms.radio.control.foreground.unselected.fill.readonly"
},
"error": {
"$type": "color",
"$value": "{sys.content.bold.primary.regular}",
Expand Down Expand Up @@ -930,11 +875,6 @@
"$value": "{sys.content.bold.disabled.regular}",
"$description": "forms.radio.control.foreground.selected.fill.disabled"
},
"readonly": {
"$type": "color",
"$value": "{sys.content.bold.disabled.regular}",
"$description": "forms.radio.control.foreground.selected.fill.readonly"
},
"error": {
"$type": "color",
"$value": "{sys.content.bold.primary.regular}",
Expand All @@ -956,10 +896,6 @@
"$type": "color",
"$value": "{sem.forms.fieldset.legend.textcolor.disabled}"
},
"readonly": {
"$type": "color",
"$value": "{sem.forms.fieldset.legend.textcolor.readonly}"
},
"error": {
"$type": "color",
"$value": "{sem.forms.fieldset.legend.textcolor.error}"
Expand Down Expand Up @@ -1441,11 +1377,6 @@
"$type": "color",
"$value": "{sys.bgcolor.bold.disabled}",
"$description": "forms.toggleswitch.control.background.unselected.fill.disabled"
},
"readonly": {
"$type": "color",
"$value": "{sys.bgcolor.bold.disabled}",
"$description": "forms.toggleswitch.control.background.unselected.fill.readonly"
}
},
"active": {
Expand Down Expand Up @@ -1473,11 +1404,6 @@
"$type": "color",
"$value": "{sys.bgcolor.bold.disabled}",
"$description": "forms.toggleswitch.control.background.selected.fill.disabled"
},
"readonly": {
"$type": "color",
"$value": "{sys.bgcolor.bold.disabled}",
"$description": "forms.toggleswitch.control.background.selected.fill.readonly"
}
}
},
Expand Down Expand Up @@ -1507,11 +1433,6 @@
"$type": "color",
"$value": "{sys.bordercolor.transparent}",
"$description": "forms.toggleswitch.control.background.unselected.stroke.disabled"
},
"readonly": {
"$type": "color",
"$value": "{sys.bordercolor.transparent}",
"$description": "forms.toggleswitch.control.background.unselected.stroke.readonly"
}
},
"active": {
Expand Down Expand Up @@ -1539,11 +1460,6 @@
"$type": "color",
"$value": "{sys.bordercolor.transparent}",
"$description": "forms.toggleswitch.control.background.unselected.stroke.disabled"
},
"readonly": {
"$type": "color",
"$value": "{sys.bordercolor.transparent}",
"$description": "forms.toggleswitch.control.background.unselected.stroke.readonly"
}
}
}
Expand Down Expand Up @@ -1575,11 +1491,6 @@
"$type": "color",
"$value": "{sys.content.bold.disabled.subtle}",
"$description": "forms.toggleswitch.control.foreground.selected.fill.disabled"
},
"readonly": {
"$type": "color",
"$value": "{sys.content.bold.disabled.subtle}",
"$description": "forms.toggleswitch.control.foreground.selected.fill.readonly"
}
},
"active": {
Expand Down Expand Up @@ -1607,11 +1518,6 @@
"$type": "color",
"$value": "{sys.content.bold.disabled.subtle}",
"$description": "forms.toggleswitch.control.foreground.selected.fill.disabled"
},
"readonly": {
"$type": "color",
"$value": "{sys.content.bold.disabled.subtle}",
"$description": "forms.toggleswitch.control.foreground.selected.fill.readonly"
}
}
}
Expand All @@ -1638,10 +1544,6 @@
"disabled": {
"$type": "color",
"$value": "{sys.static.subtle.disabled}"
},
"readonly": {
"$type": "color",
"$value": "{sys.static.subtle.disabled}"
}
},
"active": {
Expand All @@ -1664,10 +1566,6 @@
"disabled": {
"$type": "color",
"$value": "{sys.static.subtle.disabled}"
},
"readonly": {
"$type": "color",
"$value": "{sys.static.subtle.disabled}"
}
}
},
Expand All @@ -1692,10 +1590,6 @@
"disabled": {
"$type": "color",
"$value": "{cmp.toggleswitch.control.knob.bordercolor.inactive.rest}"
},
"readonly": {
"$type": "color",
"$value": "{cmp.toggleswitch.control.knob.bordercolor.inactive.rest}"
}
},
"active": {
Expand All @@ -1718,10 +1612,6 @@
"disabled": {
"$type": "color",
"$value": "{cmp.toggleswitch.control.knob.bordercolor.active.rest}"
},
"readonly": {
"$type": "color",
"$value": "{cmp.toggleswitch.control.knob.bordercolor.active.rest}"
}
}
}
Expand Down
Loading

0 comments on commit 9f9585c

Please sign in to comment.