Skip to content

Commit

Permalink
eslint nit
Browse files Browse the repository at this point in the history
  • Loading branch information
sphinxrave committed Oct 17, 2023
1 parent f3a5f90 commit 9e4929e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/react/src/shadcn/ui/badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils"

const badgeVariants = cva(
"focus:ring-ring inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2",
" inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2",
{
variants: {
variant: {
default:
"border-transparent bg-primary-9 text-primary-12 shadow hover:bg-primaryA-4",
"border-transparent bg-primary-9 text-primary-12 shadow hover:bg-primaryA-4 focus:ring-primary-8",
primary:
"border-transparent bg-primary-9 text-primary-12 shadow hover:bg-primaryA-4",
"border-transparent bg-primary-9 text-primary-12 shadow hover:bg-primaryA-4 focus:ring-primary-8",
secondary:
"border-transparent bg-secondary-9 text-secondary-12 hover:bg-secondaryA-4",
"border-transparent bg-secondary-9 text-secondary-12 hover:bg-secondaryA-4 focus:ring-secondary-8",
outline:
"text-base-12", // Assuming the foreground is a high-contrast text of base color
"text-base-12 focus:ring-base-8", // Assuming the foreground is a high-contrast text of base color
},
size: {
default: "px-2.5 py-0.5 text-xs",
sm: "py-0.25 px-1.5 text-xs",
sm: "px-1.5 text-xs",
lg: "px-3 py-1 text-sm",
},
},
Expand Down

0 comments on commit 9e4929e

Please sign in to comment.