themes icon indicating copy to clipboard operation
themes copied to clipboard

Text not responsive in FSE themes

Open devNigel opened this issue 3 years ago • 3 comments

Quick summary

The text on FSE themes is not responsive. This makes it quite large on mobile screens.

Even if you use EM or REM unit for the font-size, there is no difference on the rendered font-size with respect to the screen width.

Meanwhile, in Classic themes such as Twenty Twenty, the EM or REM unit for the font-size actually reduces font-width with respect to the screen width.

Steps to reproduce

On FSE themes:

  1. Activate an FSE theme such as Twenty Twenty Two.
  2. Create a page or post and add a Heading Block.
  3. Set font-size in REM or EM unit.
  4. Save the page.
  5. Check the rendered text size in desktop mode.
  6. Resize the browser window and check the rendered text size, it will remain the same.

Font size setting:

image

Desktop font-size - 90px

image

Mobile view - 90px

image

On Classic themes such as Twenty Twenty:

  1. Check the rendered text size in desktop mode.
  2. Resize the browser window and check the rendered text size, it is reduced.

Font size setting:

image

Desktop font-size - 105px

image

Mobile view - 90px

image

What you expected to happen

The rendered font size should be responsive.

What actually happened

The font size was not responsive. It was too large for mobile on FSE themes.

Context

User report: 5360883-zd-woothemes

Simple, Atomic or both?

Simple, Atomic

Theme-specific issue?

I was able to reproduce this issue on multiple FSE themes.

Browser, operating system and other notes

No response

Reproducibility

Consistent

Severity

All

Available workarounds?

No but the platform is still usable

Workaround details

No response

devNigel avatar Jul 09 '22 09:07 devNigel

  • [ ] to be followed up in 5360883-zen

happychait avatar Jul 11 '22 03:07 happychait

📌 HOUSEKEEPING

  • Labels ✅
  • Priority ✅
  • Replicable on Core - Yes

📌 SCRUBBING

  • Tested on P2 ✅
  • Tested on Simple ✅
  • Tested on AT ✅
  • Tested on Self-hosted ✅

📌 FINDINGS/SCREENSHOTS/VIDEO

  • I had a quick convo here(p1657823555188209-slack-C029FM1EH) and it appears to be a thing that'll be merged in Core.

https://github.com/WordPress/gutenberg/pull/39529

📌 ACTIONS

  • Marked as Triaged for Quality Squad review
  • Transferred to themes

Robertght avatar Jul 14 '22 18:07 Robertght

5405287-zen Twenty Twenty Two

Robertght avatar Jul 19 '22 04:07 Robertght