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

fixrule(text_contrast_sufficient): Support CJK large scale text in color contrast calculation #1888

Merged
merged 10 commits into from
Apr 12, 2024

Conversation

shunguoy
Copy link
Contributor

@shunguoy shunguoy commented Apr 3, 2024

The following formats should be used for the release notes and PRs.

Rule/Engine updates:
fixrule(text_contrast_sufficient): Support CJK large scale text in color contrast calculation

  • Rule bug: text_contrast_sufficient

This PR is related to the following issue(s):

fixes #1735

Additional information can be found here:

Testing reference:

test cases: test/v2/checker/accessibility/rules/text_contrast_sufficient_ruleunit/cjk_fail.html
After the fixes, several color contrast violations are reported on the buttons with the message: Text contrast of 3.86 with its background is less than the WCAG AA minimum requirements for text of size 12px and weight of 400.

I have conducted the following for this PR:

  • I validated this code in Chrome and FF
  • I validated this fix in my local env
  • I provided details for testing
  • This PR has been reviewed and is ready for test
  • I understand that the title of this PR will be used for the next release notes.

@shunguoy shunguoy requested a review from tombrunet April 4, 2024 20:00
@shunguoy shunguoy marked this pull request as ready for review April 4, 2024 20:00
tombrunet
tombrunet previously approved these changes Apr 5, 2024
@ErickRenteria ErickRenteria added this pull request to the merge queue Apr 9, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Apr 9, 2024
@ErickRenteria
Copy link
Contributor

Please review the conflicts @shunguoy

@shunguoy shunguoy requested a review from ErickRenteria April 11, 2024 18:58
@ErickRenteria ErickRenteria added this pull request to the merge queue Apr 12, 2024
Merged via the queue into master with commit be994c6 Apr 12, 2024
15 checks passed
@tombrunet tombrunet deleted the dev-1735 branch May 7, 2024 17:52
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.

[BUG]: Confirm that contrast rule properly handles non-latin fonts
3 participants