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

[Bug]: Menu overlays don't have sufficient padding #7590

Open
1 of 23 tasks
dsas opened this issue Jan 8, 2024 · 7 comments
Open
1 of 23 tasks

[Bug]: Menu overlays don't have sufficient padding #7590

dsas opened this issue Jan 8, 2024 · 7 comments
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Pri] TBD Triaged [Type] Bug Something isn't working

Comments

@dsas
Copy link
Contributor

dsas commented Jan 8, 2024

Quick summary

Some themes use unit-less values for styles.spacing.padding in theme.json which means the overlay menu is displayed without padding

Unit-less values United values
image image

Steps to reproduce

  1. Switch to a site with one of the potentially affected themes
  2. Change the viewport to mobile
  3. Click the menu button

What you expected to happen

The overlay menu should appear with spacing so that menu items are not butted up against the sides of the screen

What actually happened

The overlay menu hugs the side of the screen

Browser

No response

Context

First discovered in D128657-code for these themes

Platform (Simple, Atomic, or both?)

No response

Themes to check

  • premium/annalee
  • premium/arkin never launched
  • premium/carnation
  • premium/gourmetto
  • premium/outland
  • premium/peirao
  • premium/tenku
  • premium/zaino
  • pub/aldente relaunched under diff name
  • pub/artly
  • pub/bibimbap
  • pub/bitacora
  • pub/bute
  • pub/exmoor
  • pub/fewer
  • pub/fotograma
  • pub/freddie
  • pub/jinjang
  • pub/kigen
  • pub/lettre (maybe, it uses empty strings rather than zero?)
  • pub/loic
  • pub/luce
  • pub/luminance
  • pub/montagna relaunched under diff name
  • pub/optimismo
  • pub/poesis
  • pub/storia
  • pub/strand
  • pub/tenaz relaunched under diff name
  • pub/tomoni
  • pub/trellick
  • pub/tronar
  • pub/tu

Other notes

I generated the list of themes to check by running this command on my sandbox in ~/public_html/wp-content/themes:

for FILE in `ls */*/theme.json`; do echo $FILE; jq .styles.spacing.padding $FILE; done | grep -v px | grep -v preset | grep -v null

and then doing some manual tidy up.

I've publicised the issue so that hopefully we avoid this in future. See pNEWy-hUC-p2

Reproducibility

Consistent

Severity

All

Available workarounds?

No but the platform is still usable

Workaround details

You can probably add some custom CSS...

Themes to fix

@maciejpilarski
Copy link

maciejpilarski commented Jan 9, 2024

📌 REPRODUCTION RESULTS
– Tested on Atomic – Replicated

📌 FINDINGS/SCREENSHOTS/VIDEO
I could not find the following themes in the https://wordpress.com/themes/ repo (not tested):

  • arkin
  • aldente
  • montagna
  • optismo
  • strand
  • tenaz

I was not able to reproduce the issue in (it might be because the menu items are centered):

  • tenku
  • zaino
  • bitacora
  • luminance

📌 ACTIONS

  • Triaged

@dsas
Copy link
Contributor Author

dsas commented Jan 10, 2024

Thank you very much @maciejpilarski for testing all of those themes.

Of the ones you could not find:

@iamtakashi
Copy link
Contributor

Thanks, @dsas, for starting this issue.

How should we tackle this? Should each designer own and fix their themes, and could you help with the reviewing, merging, and deployment?

cc: @beafialho @henriqueiamarino

@dsas
Copy link
Contributor Author

dsas commented Jan 10, 2024

Whatever works best for you @iamtakashi, I'm happy to help with reviewing etc, just let me know.

@philnick206
Copy link

Reported in 8016038-zd-a8c

Copy link
Contributor

github-actions bot commented Apr 9, 2024

Support References

This comment is automatically generated. Please do not edit it.

  • 8016038-zen
  • 8801728-zen

@github-actions github-actions bot added the Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". label Apr 9, 2024
@jartes
Copy link

jartes commented Dec 10, 2024

Another one with Artly 8801728-zd-a8c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Pri] TBD Triaged [Type] Bug Something isn't working
Projects
Development

No branches or pull requests

5 participants