Skip to content

Commit

Permalink
feat(react): remove default accent color, let it be inherited through…
Browse files Browse the repository at this point in the history
… data-color instead
  • Loading branch information
unekinn committed Oct 29, 2024
1 parent fcfaf42 commit 940ad6e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/components/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export type AvatarProps = {
export const Avatar = forwardRef<HTMLSpanElement, AvatarProps>(function Avatar(
{
'aria-label': ariaLabel,
color = 'accent',
color,
variant = 'circle',
className,
children,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Badge/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export type BadgeProps = {
export const Badge = forwardRef<HTMLSpanElement, BadgeProps>(function Badge(
{
className,
color = 'accent',
color,
count,
maxCount,
overlap = 'rectangle',
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
asChild,
className,
children,
color = 'accent',
color,
icon = false,
loading = false,
variant = 'primary',
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Link/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export type LinkProps = {
} & AnchorHTMLAttributes<HTMLAnchorElement>;

export const Link = forwardRef<HTMLAnchorElement, LinkProps>(
({ asChild, className, color = 'accent', ...rest }, ref) => {
({ asChild, className, color, ...rest }, ref) => {
const Component = asChild ? Slot : 'a';

return (
Expand Down

0 comments on commit 940ad6e

Please sign in to comment.