Skip to content

Commit

Permalink
fix: add missing foreground color to Action Chip
Browse files Browse the repository at this point in the history
  • Loading branch information
te6-in committed Jan 19, 2025
1 parent da7c1a7 commit 7310071
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/public/rootage/components/action-chip.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"suffixIcon": {
"color": "$color.fg.neutral-subtle"
},
"icon": {
"color": "$color.fg.neutral"
},
"count": {
"color": "$color.fg.neutral-muted",
"fontWeight": "$font-weight.medium"
Expand All @@ -44,6 +47,9 @@
"suffixIcon": {
"color": "$color.fg.disabled"
},
"icon": {
"color": "$color.fg.disabled"
},
"count": {
"color": "$color.fg.disabled"
}
Expand Down
32 changes: 32 additions & 0 deletions docs/public/rootage/parsed.json
Original file line number Diff line number Diff line change
Expand Up @@ -8458,6 +8458,22 @@
}
]
},
{
"key": "icon",
"property": [
{
"key": "color",
"value": {
"type": "token",
"group": [
"color",
"fg"
],
"key": "neutral"
}
}
]
},
{
"key": "count",
"property": [
Expand Down Expand Up @@ -8578,6 +8594,22 @@
}
]
},
{
"key": "icon",
"property": [
{
"key": "color",
"value": {
"type": "token",
"group": [
"color",
"fg"
],
"key": "disabled"
}
}
]
},
{
"key": "count",
"property": [
Expand Down
9 changes: 9 additions & 0 deletions packages/qvism-preset/src/recipes/action-chip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ const actionChip = defineRecipe({
color: vars.base.disabled.suffixIcon.color,
},
},
icon: {
display: "inline-flex",
flexShrink: 0,

color: vars.base.enabled.icon.color,
[pseudo(disabled)]: {
color: vars.base.disabled.icon.color,
},
},
count: {
lineHeight: 1,

Expand Down
4 changes: 4 additions & 0 deletions packages/rootage/components/action-chip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ data:
color: $color.fg.neutral
suffixIcon:
color: $color.fg.neutral-subtle
icon:
color: $color.fg.neutral
count:
color: $color.fg.neutral-muted
fontWeight: $font-weight.medium
Expand All @@ -31,6 +33,8 @@ data:
color: $color.fg.disabled
suffixIcon:
color: $color.fg.disabled
icon:
color: $color.fg.disabled
count:
color: $color.fg.disabled
size=small:
Expand Down
8 changes: 8 additions & 0 deletions packages/stylesheet/actionChip.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@
.actionChip__suffixIcon:is(:disabled, [disabled], [data-disabled]) {
color: var(--seed-v3-color-fg-disabled);
}
.actionChip__icon {
display: inline-flex;
flex-shrink: 0;
color: var(--seed-v3-color-fg-neutral);
}
.actionChip__icon:is(:disabled, [disabled], [data-disabled]) {
color: var(--seed-v3-color-fg-disabled);
}
.actionChip__count {
line-height: 1;
color: var(--seed-v3-color-fg-neutral-muted);
Expand Down
6 changes: 6 additions & 0 deletions packages/vars/lib/component/action-chip.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export declare const vars: {
"suffixIcon": {
"color": "var(--seed-v3-color-fg-neutral-subtle)"
},
"icon": {
"color": "var(--seed-v3-color-fg-neutral)"
},
"count": {
"color": "var(--seed-v3-color-fg-neutral-muted)",
"fontWeight": "var(--seed-v3-font-weight-medium)"
Expand All @@ -38,6 +41,9 @@ export declare const vars: {
"suffixIcon": {
"color": "var(--seed-v3-color-fg-disabled)"
},
"icon": {
"color": "var(--seed-v3-color-fg-disabled)"
},
"count": {
"color": "var(--seed-v3-color-fg-disabled)"
}
Expand Down
6 changes: 6 additions & 0 deletions packages/vars/lib/component/action-chip.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export const vars = {
"suffixIcon": {
"color": "var(--seed-v3-color-fg-neutral-subtle)"
},
"icon": {
"color": "var(--seed-v3-color-fg-neutral)"
},
"count": {
"color": "var(--seed-v3-color-fg-neutral-muted)",
"fontWeight": "var(--seed-v3-font-weight-medium)"
Expand All @@ -38,6 +41,9 @@ export const vars = {
"suffixIcon": {
"color": "var(--seed-v3-color-fg-disabled)"
},
"icon": {
"color": "var(--seed-v3-color-fg-disabled)"
},
"count": {
"color": "var(--seed-v3-color-fg-disabled)"
}
Expand Down

0 comments on commit 7310071

Please sign in to comment.