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

Fix: Contrast checker: Consider fontSize large when size >= 24px instead of >= 18px #9268

Merged
merged 1 commit into from
Nov 8, 2018

Conversation

jorgefilipecosta
Copy link
Member

Fixes: #8614
Thank you @afercia for catching this issue.
The rule specifies that if the text is greater or equal to 18pt it is considered large but we are using pixels so in this case the accepted practice is to consider 1pt = 1.333px and a value of 24px should be used.

How has this been tested?

I created a paragraph with background color equal to #C44B4B and text color equal to #000000. I verified that if the font size is set 23 a contrast warning is shown and if the font size is equal to 24 the warning is not shown.

Copy link
Member

@tofumatt tofumatt left a comment

Choose a reason for hiding this comment

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

Coolio! 🚢

@tofumatt tofumatt added this to the 4.3 milestone Nov 8, 2018
@tofumatt tofumatt merged commit 78dd21f into master Nov 8, 2018
@tofumatt tofumatt deleted the fix/contrast-checker-font-size-rule branch November 8, 2018 03:14
daniloercoli added a commit that referenced this pull request Nov 8, 2018
…rnmobile/fix-merge-content-not-refreshed-UI

* 'master' of https://github.com/WordPress/gutenberg:
  Add missing tests for Format API code (#11562)
  chore: Improve undo/redo no-op (#11428)
  Fix: Contrast checker: Consider fontSize large when size >=  24px instead of >= 18px (#9268)
@mtias mtias added the [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). label Nov 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants