danielfrg / mkdocs-jupyter

Use Jupyter Notebook in mkdocs
https://mkdocs-jupyter.danielfrg.com
Apache License 2.0
362 stars 45 forks source link

Copy-to-clipboard triggering accessibility issue #205

Closed brynpickering closed 3 days ago

brynpickering commented 4 days ago

I just set up some CI to test our docs accessibility against the WCAG2AA standard (using Pa11y-ci) and came across an issue with our converted notebooks. The clipboard-copy button is causing the following error:

Error/Serious: ARIA commands must have an accessible name

Ensures every ARIA button, link and menuitem has an accessible name

[axe: aria-command-name](https://dequeuniversity.com/rules/axe/4.2/aria-command-name?application=axeAPI)

<clipboard-copy for="cell-1" tabindex="0" role="button"> <div> <span class="notice" hid...</clipboard-copy>
(selector "html > body > div:nth-child(9) > main > div > div:nth-child(3) > article > div > div > div:nth-child(2) > div > div > div:nth-child(2) > div:nth-child(2) > div > div:nth-child(1) > clipboard-copy")