Add aria-label to quickstart widget

This commit is contained in:
Marcus Blättermann 2023-01-24 14:53:22 +01:00
parent 49237f05a6
commit 90762384d4
No known key found for this signature in database
GPG Key ID: A1E1F04008AC450D

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>