Add aria-label to quickstart widget (#12179)

This commit is contained in:
Marcus Blättermann 2023-01-25 11:46:55 +01:00 committed by GitHub
parent 0298b1a863
commit 99a05734a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,7 +251,12 @@ const Quickstart = ({
</menu>
</pre>
{showCopy && (
<textarea ref={copyAreaRef} className={classes['copy-area']} rows={1} />
<textarea
ref={copyAreaRef}
className={classes['copy-area']}
rows={1}
aria-label={`Interactive code example for ${title}`}
/>
)}
</div>
</Container>