Skip to content

Commit

Permalink
fix: badge color
Browse files Browse the repository at this point in the history
  • Loading branch information
malangcat committed Jan 21, 2025
1 parent e770416 commit 1a9d543
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 29 deletions.
8 changes: 4 additions & 4 deletions docs/public/rootage/components/badge.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"color": "$color.bg.brand-weak"
},
"label": {
"color": "$color.fg.brand"
"color": "$color.fg.brand-contrast"
}
}
},
Expand Down Expand Up @@ -142,7 +142,7 @@
"color": "$color.bg.informative-weak"
},
"label": {
"color": "$color.fg.informative"
"color": "$color.fg.informative-contrast"
}
}
},
Expand Down Expand Up @@ -172,7 +172,7 @@
"color": "$color.bg.positive-weak"
},
"label": {
"color": "$color.fg.positive"
"color": "$color.fg.positive-contrast"
}
}
},
Expand Down Expand Up @@ -202,7 +202,7 @@
"color": "$color.bg.danger-weak"
},
"label": {
"color": "$color.fg.danger"
"color": "$color.fg.danger-contrast"
}
}
},
Expand Down
8 changes: 4 additions & 4 deletions docs/public/rootage/parsed.json
Original file line number Diff line number Diff line change
Expand Up @@ -10746,7 +10746,7 @@
"color",
"fg"
],
"key": "brand"
"key": "brand-contrast"
}
}
]
Expand Down Expand Up @@ -10887,7 +10887,7 @@
"color",
"fg"
],
"key": "informative"
"key": "informative-contrast"
}
}
]
Expand Down Expand Up @@ -11028,7 +11028,7 @@
"color",
"fg"
],
"key": "positive"
"key": "positive-contrast"
}
}
]
Expand Down Expand Up @@ -11169,7 +11169,7 @@
"color",
"fg"
],
"key": "danger"
"key": "danger-contrast"
}
}
]
Expand Down
8 changes: 4 additions & 4 deletions packages/rootage/components/badge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ data:
root:
color: $color.bg.brand-weak
label:
color: $color.fg.brand
color: $color.fg.brand-contrast
tone=brand, variant=solid:
enabled:
root:
Expand All @@ -89,7 +89,7 @@ data:
root:
color: $color.bg.informative-weak
label:
color: $color.fg.informative
color: $color.fg.informative-contrast
tone=informative, variant=solid:
enabled:
root:
Expand All @@ -107,7 +107,7 @@ data:
root:
color: $color.bg.positive-weak
label:
color: $color.fg.positive
color: $color.fg.positive-contrast
tone=positive, variant=solid:
enabled:
root:
Expand All @@ -125,7 +125,7 @@ data:
root:
color: $color.bg.danger-weak
label:
color: $color.fg.danger
color: $color.fg.danger-contrast
tone=danger, variant=solid:
enabled:
root:
Expand Down
8 changes: 4 additions & 4 deletions packages/stylesheet/badge.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
background-color: var(--seed-v3-color-bg-brand-weak)
}
.badge__label--tone_brand-variant_weak {
color: var(--seed-v3-color-fg-brand)
color: var(--seed-v3-color-fg-brand-contrast)
}
.badge__root--tone_brand-variant_solid {
background-color: var(--seed-v3-color-bg-brand-solid)
Expand All @@ -89,7 +89,7 @@
background-color: var(--seed-v3-color-bg-informative-weak)
}
.badge__label--tone_informative-variant_weak {
color: var(--seed-v3-color-fg-informative)
color: var(--seed-v3-color-fg-informative-contrast)
}
.badge__root--tone_informative-variant_solid {
background-color: var(--seed-v3-color-bg-informative-solid)
Expand All @@ -107,7 +107,7 @@
background-color: var(--seed-v3-color-bg-positive-weak)
}
.badge__label--tone_positive-variant_weak {
color: var(--seed-v3-color-fg-positive)
color: var(--seed-v3-color-fg-positive-contrast)
}
.badge__root--tone_positive-variant_solid {
background-color: var(--seed-v3-color-bg-positive-solid)
Expand All @@ -125,7 +125,7 @@
background-color: var(--seed-v3-color-bg-danger-weak)
}
.badge__label--tone_danger-variant_weak {
color: var(--seed-v3-color-fg-danger)
color: var(--seed-v3-color-fg-danger-contrast)
}
.badge__root--tone_danger-variant_solid {
background-color: var(--seed-v3-color-bg-danger-solid)
Expand Down
8 changes: 4 additions & 4 deletions packages/stylesheet/component.css
Original file line number Diff line number Diff line change
Expand Up @@ -1835,7 +1835,7 @@
}

.badge__label--tone_brand-variant_weak {
color: var(--seed-v3-color-fg-brand);
color: var(--seed-v3-color-fg-brand-contrast);
}

.badge__root--tone_brand-variant_solid {
Expand All @@ -1859,7 +1859,7 @@
}

.badge__label--tone_informative-variant_weak {
color: var(--seed-v3-color-fg-informative);
color: var(--seed-v3-color-fg-informative-contrast);
}

.badge__root--tone_informative-variant_solid {
Expand All @@ -1883,7 +1883,7 @@
}

.badge__label--tone_positive-variant_weak {
color: var(--seed-v3-color-fg-positive);
color: var(--seed-v3-color-fg-positive-contrast);
}

.badge__root--tone_positive-variant_solid {
Expand All @@ -1907,7 +1907,7 @@
}

.badge__label--tone_danger-variant_weak {
color: var(--seed-v3-color-fg-danger);
color: var(--seed-v3-color-fg-danger-contrast);
}

.badge__root--tone_danger-variant_solid {
Expand Down
2 changes: 1 addition & 1 deletion packages/stylesheet/component.min.css

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions packages/vars/lib/component/badge.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export declare const vars: {
"color": "var(--seed-v3-color-bg-brand-weak)"
},
"label": {
"color": "var(--seed-v3-color-fg-brand)"
"color": "var(--seed-v3-color-fg-brand-contrast)"
}
}
},
Expand Down Expand Up @@ -136,7 +136,7 @@ export declare const vars: {
"color": "var(--seed-v3-color-bg-informative-weak)"
},
"label": {
"color": "var(--seed-v3-color-fg-informative)"
"color": "var(--seed-v3-color-fg-informative-contrast)"
}
}
},
Expand Down Expand Up @@ -166,7 +166,7 @@ export declare const vars: {
"color": "var(--seed-v3-color-bg-positive-weak)"
},
"label": {
"color": "var(--seed-v3-color-fg-positive)"
"color": "var(--seed-v3-color-fg-positive-contrast)"
}
}
},
Expand Down Expand Up @@ -196,7 +196,7 @@ export declare const vars: {
"color": "var(--seed-v3-color-bg-danger-weak)"
},
"label": {
"color": "var(--seed-v3-color-fg-danger)"
"color": "var(--seed-v3-color-fg-danger-contrast)"
}
}
},
Expand Down
8 changes: 4 additions & 4 deletions packages/vars/lib/component/badge.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const vars = {
"color": "var(--seed-v3-color-bg-brand-weak)"
},
"label": {
"color": "var(--seed-v3-color-fg-brand)"
"color": "var(--seed-v3-color-fg-brand-contrast)"
}
}
},
Expand Down Expand Up @@ -136,7 +136,7 @@ export const vars = {
"color": "var(--seed-v3-color-bg-informative-weak)"
},
"label": {
"color": "var(--seed-v3-color-fg-informative)"
"color": "var(--seed-v3-color-fg-informative-contrast)"
}
}
},
Expand Down Expand Up @@ -166,7 +166,7 @@ export const vars = {
"color": "var(--seed-v3-color-bg-positive-weak)"
},
"label": {
"color": "var(--seed-v3-color-fg-positive)"
"color": "var(--seed-v3-color-fg-positive-contrast)"
}
}
},
Expand Down Expand Up @@ -196,7 +196,7 @@ export const vars = {
"color": "var(--seed-v3-color-bg-danger-weak)"
},
"label": {
"color": "var(--seed-v3-color-fg-danger)"
"color": "var(--seed-v3-color-fg-danger-contrast)"
}
}
},
Expand Down

0 comments on commit 1a9d543

Please sign in to comment.