Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

feat(LoadingSpinner): Add progressbar role #151

Merged
merged 1 commit into from
Dec 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/Loaders/LoadingSpinner.spec.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from "react";
import { cleanup, render } from "@testing-library/react";
import { LoadingSpinner } from "./LoadingSpinner";

afterEach(cleanup);

test("it should have `role='progress'`", () => {
const { getByRole } = render(<LoadingSpinner />);

getByRole("progressbar");
});
1 change: 1 addition & 0 deletions src/Loaders/LoadingSpinner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export const LoadingSpinner: React.FC<Props> = ({
return (
<svg
className={className}
role="progressbar"
viewBox="0 0 100 100"
css={{
width: pixelSize,
Expand Down