Skip to content

Commit

Permalink
badge shadcn component coderabbitai suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
modamaan committed Nov 17, 2024
1 parent 787bb43 commit 54685a4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/ui/badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ export interface BadgeProps

function Badge({ className, variant, ...props }: BadgeProps) {
return (
<div className={cn(badgeVariants({ variant }), className)} {...props} />
<div
role="status"
aria-label={props.children?.toString()}
className={cn(badgeVariants({ variant }), className)}
{...props}
/>
);
}

Expand Down

0 comments on commit 54685a4

Please sign in to comment.