Skip to content

Commit ecdbefa

Browse files
committed
chore: fix a11y issues
1 parent 15d9ccb commit ecdbefa

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

recipe-gallery/sweetalert2-laravel.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ Swal::toastQuestion([
9595
<p>
9696
<img
9797
src="https://github.com/sweetalert2/sweetalert2-laravel/raw/main/sweetalert2-laravel.png"
98+
alt="SweetAlert2 Laravel integration demo screenshot"
9899
style={{ maxWidth: 840 }}
99100
/>
100101
</p>

src/components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function Header() {
5252
</div>
5353
<div id="logo-slider">
5454
<div id="logo-track">
55-
<img src="/images/logo-donut-track.svg" />
55+
<img src="/images/logo-donut-track.svg" alt="" />
5656
</div>
5757
<div id="logo-bouncer">
5858
<div id="logo-spinner">

src/components/Nav.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ export function Nav({
1616
return (
1717
<>
1818
<Sidebar />
19-
<i className="fa fa-bars show-sidebar" onClick={() => showSidebar()}></i>
19+
<button className="show-sidebar" onClick={() => showSidebar()} aria-label="Open navigation menu">
20+
<i className="fa fa-bars" aria-hidden="true"></i>
21+
</button>
2022

2123
{recipeGallery ? (
2224
<>

src/components/Showcase.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export function Showcase() {
2727
<a href="https://cheapgpt.store/" target="_blank" rel="noopener">
2828
<img
2929
src="/images/sponsors/cheapgpt.gif"
30+
alt="CheapGPT"
3031
width="728"
3132
height="90"
3233
style={{ maxWidth: '100%', height: 'auto' }}

styles/styles.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ nav {
123123
justify-content: center;
124124
width: 48px;
125125
height: 48px;
126+
padding: 0;
127+
border: none;
126128
background-color: $body-background;
127129
font-size: 1.8em !important;
128130
cursor: pointer;

0 commit comments

Comments
 (0)