Skip to content

Commit b8bb589

Browse files
committed
fix: resolve jsx-a11y lint errors
1 parent 02a06ef commit b8bb589

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

components/mdx-components/code.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ export function Code(props: CodeProps) {
4545
aria-hidden="true"
4646
/>
4747
)}
48-
<span role="status" aria-live="polite" className="sr-only">
48+
<output aria-live="polite" className="sr-only">
4949
{copyStatus === 'success' ? 'Code copied to clipboard' : ''}
50-
</span>
50+
</output>
5151
</button>
5252
<div className="overflow-x-scroll">{children}</div>
5353
</pre>

pages/udemy-reset-progress.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,14 @@ function UdemyResetProgressPage() {
129129
confirmation dialogs.
130130
</p>
131131

132-
<video loop autoPlay muted playsInline className="mb-6 mx-auto mt-10">
132+
<video
133+
loop
134+
autoPlay
135+
muted
136+
playsInline
137+
aria-label="Demo of Udemy Reset Progress extension resetting a course"
138+
className="mb-6 mx-auto mt-10"
139+
>
133140
<source
134141
src="/static/images/udemy-progress-reset/video.mp4"
135142
type="video/mp4"

0 commit comments

Comments
 (0)