Skip to content

Commit

Permalink
fix: set aria-label on all loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Dec 11, 2023
1 parent d7c97b6 commit 9adca27
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/core/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const Button = ({
{loading && (
<>
&nbsp;&nbsp;
<ClipLoader color="inherit" size="14px" />
<ClipLoader aria-label="loading" color="inherit" size="14px" />
</>
)}
</ElementType>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/components/DraggableComponent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const DraggableComponent = ({
{debug}
{isLoading && (
<div className={getClassName("loadingOverlay")}>
<ClipLoader size={16} color="inherit" />
<ClipLoader aria-label="loading" size={16} color="inherit" />
</div>
)}
<div className={getClassName("overlay")}>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/components/Puck/components/Fields/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const DefaultFields = ({
{children}
{isLoading && (
<div className={getClassName("loadingOverlay")}>
<ClipLoader />
<ClipLoader aria-label="loading" />
</div>
)}
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/components/SidebarSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const SidebarSection = ({
<div className={getClassName("content")}>{children}</div>
{isLoading && (
<div className={getClassName("loadingOverlay")}>
<ClipLoader />
<ClipLoader aria-label="loading" />
</div>
)}
</div>
Expand Down

0 comments on commit 9adca27

Please sign in to comment.