Skip to content

fix(color-contrast): skip ligature icons#3867

Merged
straker merged 1 commit intodevelopfrom
contrast-skip-ligature-icons
Jan 23, 2023
Merged

fix(color-contrast): skip ligature icons#3867
straker merged 1 commit intodevelopfrom
contrast-skip-ligature-icons

Conversation

@WilcoFiers
Copy link
Copy Markdown
Contributor

Closes: #3659

@WilcoFiers WilcoFiers requested a review from a team as a code owner January 20, 2023 15:06
});
}

describe('with font icons', () => {
Copy link
Copy Markdown
Contributor

@straker straker Jan 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a true test case (there are only 2 false cases)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way I figured it, pretty much every other test in this suite shows that text that isn't an icon font can pass or fail the check. Whatever I add here would basically just be a copy of the default "true" case.

Copy link
Copy Markdown
Contributor

@straker straker Jan 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test that's missing is making sure that at least 1 non-ligature icon text passes the matchers when there is an icon ligature present https://github.com/dequelabs/axe-core/pull/3867/files#diff-3d333c18371db80de7813d5146a4dd966928b3463664813bcb8a99289136e542R171-R173

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We talked about this. Due to how font icons work and our font icon detection strategy, having non-icons ligatures in the same text node as icon ligatures doesn't really work. We'll open a pr to add a comment about this in a different pr.

@straker straker dismissed their stale review January 23, 2023 16:55

Resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

color-contrast fails on aria-hidden="true" elements

2 participants