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

refactor(accessibility): optimizations #1324

Merged

Conversation

mfranzke
Copy link
Contributor

@mfranzke mfranzke commented May 23, 2021

Summary of changes:

…the same link

related to WCAG 1.1.1: Non-text content

The text alternative for an image within a link should not repeat the link text or adjacent link text
@mfranzke mfranzke changed the title refactor(a11y): link text is repeated in an image 'alt' value within … refactor(accessibility): optimizations May 23, 2021
mfranzke added 5 commits May 23, 2021 16:49
related to 2.4.9 Link Purpose (Link Only)
related to 1.3.1 Info and Relationships and 1.3.2 Meaningful Sequence
multiple elements with "main" role do not have unique labels

related to 1.3.1 Info and Relationships, 2.4.1 Bypass Blocks, 3.2.3 Consistent Navigation, 4.1.1 Parsing and 4.1.2 Name, Role, Value
…hem easily

Inline frames must have a unique, non-empty 'title' attribute
related to 4.1.2 Name, Role, Value
@mfranzke mfranzke marked this pull request as ready for review May 23, 2021 15:42
mfranzke added 2 commits May 23, 2021 19:33
that incorrectly closed <a> tag lead to an additional, empty hyperling - we'd like to prevent this especially for a11y reasons
related WCAG 2.4.4 Link Purpose (in Context)
images would either need some alternative textual description, an empty alt-attribute, or be hidden from the accessibility tree

related to WCAG 1.1.1 Non-text Content
@mfranzke mfranzke requested a review from sghoweri as a code owner May 24, 2021 09:00
@JosefBredereck JosefBredereck merged commit d7d9164 into pattern-lab:dev Jun 9, 2021
@mfranzke mfranzke deleted the refactor-accessibility-improvements branch June 9, 2021 19:12
antonia-rose pushed a commit to quelltexterin/nemo-uikit-workshop that referenced this pull request Apr 12, 2023
* refactor(a11y): link text is repeated in an image 'alt' value within the same link

related to WCAG 1.1.1: Non-text content

The text alternative for an image within a link should not repeat the link text or adjacent link text

* refactor(a11y): prevent ambiguous link names

related to 2.4.9 Link Purpose (Link Only)

* fix(a11y): heading levels should only increase by one

related to 1.3.1 Info and Relationships and 1.3.2 Meaningful Sequence

* fix(a11y): removed duplicated <main> tag

multiple elements with "main" role do not have unique labels

related to 1.3.1 Info and Relationships, 2.4.1 Bypass Blocks, 3.2.3 Consistent Navigation, 4.1.1 Parsing and 4.1.2 Name, Role, Value

* refactor(a11y): added necessary title to the iframes to distinguish them easily

Inline frames must have a unique, non-empty 'title' attribute
related to 4.1.2 Name, Role, Value

* fix(a11): ensure a text/background contrast of at least 4.5 : 1

related to WCAG 1.4.3 Contrast (Minimum)

* fix(a11y): removed "additional" hyperlink

that incorrectly closed <a> tag lead to an additional, empty hyperling - we'd like to prevent this especially for a11y reasons
related WCAG 2.4.4 Link Purpose (in Context)

* refactor(a11y): hide additive icons

images would either need some alternative textual description, an empty alt-attribute, or be hidden from the accessibility tree

related to WCAG 1.1.1 Non-text Content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants