Skip to content

Commit 9195f80

Browse files
authored
Merge pull request #28 from MFB-Technologies-Inc/feature/24-add-a-title-to-the-spinner-image
Feature/24 add a title to the spinner image
2 parents 9836abd + 4737806 commit 9195f80

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/components/LoadingSpinner.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,4 @@ $half-size: math.div($size, 2);
4444
transform: rotate(350deg);
4545
}
4646
}
47-
48-
.alt-text {
49-
display: none;
50-
}
5147
}

src/components/LoadingSpinner.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ export const LoadingSpinner: React.FC = () => (
1414
y="0px"
1515
viewBox="0 0 144 144"
1616
xmlSpace="preserve"
17+
aria-labelledby="loadingSpinnerTitle"
18+
role="img"
1719
>
20+
<title id="loadingSpinnerTitle">Loading spinner</title>
1821
<g>
1922
<path
2023
opacity="0.9"
@@ -58,6 +61,5 @@ export const LoadingSpinner: React.FC = () => (
5861
/>
5962
</g>
6063
</svg>
61-
<span className="alt-text">Loading...</span>
6264
</div>
6365
)

0 commit comments

Comments
 (0)