Skip to content

Commit

Permalink
Fixed the accessibility issues (font-weight and color) related to the… (
Browse files Browse the repository at this point in the history
#2145)

* Fixed the accessibility issues (font-weight and color) related to the badge

* lint issue fix
  • Loading branch information
isaozler committed May 17, 2024
1 parent b45db66 commit 076f098
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-waves-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@kadena/react-ui': patch
---

Fixed the accessibility issues (font-weight and color) related to the badge
9 changes: 5 additions & 4 deletions packages/libs/react-ui/src/components/Badge/Badge.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,31 @@ export const badge = recipe({
justifyContent: 'center',
alignItems: 'center',
lineHeight: 'base',
fontWeight: 'primaryFont.bold',
}),
{
borderColor: token('color.neutral.n1@alpha20'),
color: token('color.neutral.n0@alpha70'),
color: token('color.text.base.inverse.@init'),
},
],
variants: {
size: {
lg: {
height: token('size.n8'),
minWidth: token('size.n8'),
fontSize: '14px',
fontSize: token('typography.fontSize.sm'),
},
sm: {
height: token('size.n4'),
minWidth: token('size.n4'),
fontSize: '12px',
fontSize: token('typography.fontSize.xs'),
},
},
style: {
default: {
backgroundColor: token('color.neutral.n99@alpha20'),
borderColor: token('color.neutral.n99@alpha10'),
color: token('color.neutral.n100@alpha70'),
color: token('color.text.base.@init'),
},
inverse: {
backgroundColor: token('color.neutral.n1@alpha10'),
Expand Down

0 comments on commit 076f098

Please sign in to comment.