Skip to content

Commit

Permalink
added the high contrast variant (#2147)
Browse files Browse the repository at this point in the history
* added the high contrast variant and fixed the inline spacing for the large variant

* exported the Badge component
  • Loading branch information
isaozler committed May 17, 2024
1 parent 076f098 commit 9cb50ea
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/perfect-cheetahs-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@kadena/react-ui": patch
---

added the high contrast variant and fixed the inline spacing for the large variant
4 changes: 4 additions & 0 deletions packages/libs/react-ui/src/components/Badge/Badge.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const badge = recipe({
lg: {
height: token('size.n8'),
minWidth: token('size.n8'),
paddingInline: token('size.n2'),
fontSize: token('typography.fontSize.sm'),
},
sm: {
Expand All @@ -40,6 +41,9 @@ export const badge = recipe({
inverse: {
backgroundColor: token('color.neutral.n1@alpha10'),
},
highContrast: {
backgroundColor: token('color.background.base.inverse.default'),
},
info: {
backgroundColor: token(
'color.background.semantic.info.inverse.default',
Expand Down
1 change: 1 addition & 0 deletions packages/libs/react-ui/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export {
Accordion,
AccordionItem,
Avatar,
Badge,
Box,
Breadcrumbs,
BreadcrumbsItem,
Expand Down

0 comments on commit 9cb50ea

Please sign in to comment.