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

Fluid typography does not scale up to 200% - Fails 1.4.4 Resize text Level AA #43488

Open
LukaszJaro opened this issue Aug 22, 2022 · 0 comments
Labels
[Feature] Typography Font and typography-related issues and PRs [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes).

Comments

@LukaszJaro
Copy link

LukaszJaro commented Aug 22, 2022

Description

This was first brought up in the comments in this article https://make.wordpress.org/themes/2022/08/15/testing-and-feedback-for-the-fluid-typography-feature/

I can confirm, I tested this with FSE, latest gutenberg version. I added the new fluid keys, while they work great for responsiveness the text actually shrinks the more you zoom in on chrome. When not using clamp this does not happen and text grows up to 200%.

https://www.w3.org/WAI/WCAG21/quickref/?showtechniques=144#resize-text

Unfortunately there is no zoom api that can be implemented to switch off fluid typography and automated accessibility scanning tools won't pick up on this either.

There is a github issue related to this w3c/csswg-drafts#6869

Step-by-step reproduction instructions

  1. Add new fluid keys in theme,json
  2. Create new post
  3. Add regular h2 with no clamp
  4. Add h2 with clamp and fluid size
  5. Publish results and view on front-end
  6. Zoom in using chrome and watch or measure text(100% - 500%). Also observe differences between clamp and non clamp h2

Screenshots, screen recording, code snippet

Chrome 500% zoom.
h2 no clamp set as 2rem.
h2 clamp max set as 2rem and min as 1.5rem.

image

Environment info

  • Custom theme, Gutenberg 13.9.0, WordPress 6.0.1
  • Chrome, windows 10

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@skorasaurus skorasaurus added the [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes). label Aug 22, 2022
@ramonjd ramonjd added the [Feature] Typography Font and typography-related issues and PRs label Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Typography Font and typography-related issues and PRs [Focus] Accessibility (a11y) Changes that impact accessibility and need corresponding review (e.g. markup changes).
Projects
None yet
Development

No branches or pull requests

3 participants