Skip to content

Commit

Permalink
refactor(spinner): ♻️ change aria to proper name label
Browse files Browse the repository at this point in the history
  • Loading branch information
navin-moorthy committed Jul 30, 2021
1 parent a59c586 commit d99c7ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/spinner/Spinner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const Spinner = forwardRefWithAs<SpinnerProps, HTMLDivElement, "div">(
data-testid="testid-spinner"
{...rest}
>
{label && <div className={theme.spinner.aria}>{label}</div>}
{label && <div className={theme.spinner.label}>{label}</div>}
</Box>
);
},
Expand Down
2 changes: 1 addition & 1 deletion src/theme/defaultTheme/spinner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const spinner = {
transparent: "lib:border-b-transparent lib:border-l-transparent",
visible: "lib:border-b-gray-300 lib:border-l-gray-300",
},
aria: "lib:sr-only",
label: "lib:sr-only",
size: {
xs: "lib:h-3 lib:w-3",
sm: "lib:h-4 lib:w-4",
Expand Down

0 comments on commit d99c7ec

Please sign in to comment.