Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodeChunk: Accessibility check failures #37

Open
nokome opened this issue Apr 1, 2020 · 0 comments
Open

CodeChunk: Accessibility check failures #37

nokome opened this issue Apr 1, 2020 · 0 comments
Assignees
Labels

Comments

@nokome
Copy link
Member

nokome commented Apr 1, 2020

Over in Encoda we are doing AXE and WCAG2 accessibility checks on generated HTML. There are several failures for CodeChunks (that we are currently skipping). Note some of these are double ups:

    Failed: "html > body > main > article > stencila-code-chunk:nth-child(8) > div > stencila-code-editor > div > menu > select: label: Form elements must have labels (https://dequeuniversity.com/rules/axe/3.5/label?application=axeAPI)"

    Failed: "html > body > main > article > stencila-code-chunk:nth-child(11) > div > stencila-code-editor > div > menu > select: label: Form elements must have labels (https://dequeuniversity.com/rules/axe/3.5/label?application=axeAPI)"

    Failed: "html > body > main > article > stencila-code-chunk:nth-child(8) > stencila-action-menu > nav: landmark-unique: Ensures landmarks are unique (https://dequeuniversity.com/rules/axe/3.5/landmark-unique?application=axeAPI)"

    Failed: "html > body > main > article > stencila-code-chunk:nth-child(11) > div > stencila-code-editor > div > div > div:nth-child(2) > div: scrollable-region-focusable: Ensure that scrollable region has keyboard access (https://dequeuniversity.com/rules/axe/3.5/scrollable-region-focusable?application=axeAPI)"

    Failed: "html > body > main > article > stencila-code-chunk:nth-child(8) > div > stencila-code-editor > div > menu > select: WCAG2AA.Principle4.Guideline4_1.4_1_2.H91.Select.Name: This select element does not have a name available to an accessibility API. Valid names are: label element, title undefined, aria-label undefined, aria-labelledby undefined."

    Failed: "html > body > main > article > stencila-code-chunk:nth-child(8) > div > stencila-code-editor > div > menu > select: WCAG2AA.Principle1.Guideline1_3.1_3_1.F68: This form field should be labelled in some way. Use the label element (either with a \"for\" attribute or wrapped around the form field), or \"title\", \"aria-label\" or \"aria-labelledby\" attributes as appropriate."

    Failed: "html > body > main > article > stencila-code-chunk:nth-child(11) > div > stencila-code-editor > div > menu > select: WCAG2AA.Principle4.Guideline4_1.4_1_2.H91.Select.Name: This select element does not have a name available to an accessibility API. Valid names are: label element, title undefined, aria-label undefined, aria-labelledby undefined."

    Failed: "html > body > main > article > stencila-code-chunk:nth-child(11) > div > stencila-code-editor > div > menu > select: WCAG2AA.Principle1.Guideline1_3.1_3_1.F68: This form field should be labelled in some way. Use the label element (either with a \"for\" attribute or wrapped around the form field), or \"title\", \"aria-label\" or \"aria-labelledby\" attributes as appropriate."

@nokome nokome added the bug label Apr 1, 2020
@alex-ketch alex-ketch self-assigned this Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants