Skip to content

Commit

Permalink
fix: set spinner default color as primary
Browse files Browse the repository at this point in the history
  • Loading branch information
abelflopes committed Jan 24, 2024
1 parent 684aa2c commit 7ec88f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/components/spinner/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Icon, type IconProps } from "@react-ck/icon";

export interface SpinnerProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "children"> {
size?: IconProps["size"];
skin?: "default" | "primary";
skin?: "text" | "primary";
}

/**
Expand All @@ -17,7 +17,7 @@ export interface SpinnerProps extends Omit<React.HTMLAttributes<HTMLSpanElement>

export const Spinner = ({
size = "l",
skin = "default",
skin = "primary",
className,
...otherProps
}: Readonly<SpinnerProps>): React.ReactElement => (
Expand Down
2 changes: 1 addition & 1 deletion packages/components/spinner/src/styles/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
animation: spin 1.5s infinite linear;
}

.default {
.text {
@include define-css-var(spinner, color, currentColor);
}

Expand Down

0 comments on commit 7ec88f6

Please sign in to comment.