Skip to content

Commit 75341f7

Browse files
committed
style(styled badge): refactor the way it's written but end result same
1 parent 2d6be34 commit 75341f7

File tree

1 file changed

+5
-7
lines changed
  • packages/kit-styled/src/components/badge

1 file changed

+5
-7
lines changed

packages/kit-styled/src/components/badge/badge.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@ import { cn } from '@qwik-ui/utils';
33
import { cva, type VariantProps } from 'class-variance-authority';
44

55
const badgeVariants = cva(
6-
'inline-flex items-center rounded-base border px-2.5 py-0.5 text-xs font-semibold transition-colors shadow-sm focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',
6+
'inline-flex items-center rounded-base px-2.5 py-0.5 text-xs font-semibold transition-colors shadow-sm focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',
77
{
88
variants: {
99
look: {
10-
primary:
11-
'border-transparent bg-primary text-primary-foreground hover:bg-primary/80',
12-
secondary:
13-
'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80',
14-
alert: 'border-transparent bg-alert text-alert-foreground hover:bg-alert/80',
15-
outline: 'text-foreground',
10+
primary: 'bg-primary text-primary-foreground hover:bg-primary/80',
11+
secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',
12+
alert: 'bg-alert text-alert-foreground hover:bg-alert/80',
13+
outline: 'border text-foreground',
1614
},
1715
},
1816
defaultVariants: {

0 commit comments

Comments
 (0)