Skip to content

Commit

Permalink
feat: update control chip design
Browse files Browse the repository at this point in the history
  • Loading branch information
malangcat committed Dec 9, 2024
1 parent 6a0a948 commit d5a04f3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/public/rootage/components/control-chip.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"color": "$color.bg.neutral-solid-muted"
},
"label": {
"color": "$color.fg.static-white"
"color": "$color.fg.static-white",
"fontWeight": "$font-weight.bold"
},
"prefixIcon": {
"color": "$color.fg.static-white"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const controlChip = defineRecipe({
fontWeight: vars.base.enabled.label.fontWeight,
[pseudo(checked)]: {
color: vars.base.selected.label.color,
fontWeight: vars.base.selected.label.fontWeight,
},
[pseudo(disabled)]: {
color: vars.base.disabled.label.color,
Expand Down
1 change: 1 addition & 0 deletions packages/rootage/artifacts/components/control-chip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ data:
color: $color.bg.neutral-solid-muted
label:
color: $color.fg.static-white
fontWeight: $font-weight.bold
prefixIcon:
color: $color.fg.static-white
suffixIcon:
Expand Down
1 change: 1 addition & 0 deletions packages/stylesheet/controlChip.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
}
.controlChip__label:is(:checked, [data-checked]) {
color: var(--seed-v3-color-fg-static-white);
font-weight: var(--seed-v3-font-weight-bold);
}
.controlChip__label:is(:disabled, [disabled], [data-disabled]) {
color: var(--seed-v3-color-fg-disabled);
Expand Down
3 changes: 2 additions & 1 deletion packages/vars/src/component/control-chip.vars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export const vars = {
"color": "var(--seed-v3-color-bg-neutral-solid-muted)"
},
"label": {
"color": "var(--seed-v3-color-fg-static-white)"
"color": "var(--seed-v3-color-fg-static-white)",
"fontWeight": "var(--seed-v3-font-weight-bold)"
},
"prefixIcon": {
"color": "var(--seed-v3-color-fg-static-white)"
Expand Down

0 comments on commit d5a04f3

Please sign in to comment.