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

Blocks: Web Stories blocks conflicts with theme's menu behavior on mobile #13587

Closed
LuckynaSan opened this issue Feb 5, 2024 · 2 comments · Fixed by #13589
Closed

Blocks: Web Stories blocks conflicts with theme's menu behavior on mobile #13587

LuckynaSan opened this issue Feb 5, 2024 · 2 comments · Fixed by #13589
Labels
Group: Blocks Issues related to the provided Gutenberg Blocks P1 High priority, must do soon Type: Bug Something isn't working
Milestone

Comments

@LuckynaSan
Copy link
Collaborator

Bug Description

The Web Stories block interferes with the burger menu of a default WordPress theme on mobile view.
The burger menu does not expand when clicking on it. After scrolling to the bottom of the page, and back up to the menu icon the menu behaves as expected.

*Noting that when only a single Web Story was embedded the issue did not occur. Once you add a handful of latest stories, the issue occurs. Unsure if this affects other themes.

Expected Behaviour

For the Theme's burger menu to work when Web Stories blocks are inserted on the page.

Steps to Reproduce

  1. Activate WordPress Twenty Twenty Three theme
  2. Insert Web Stories blocks (more than one story)
  3. View page on physical mobile device
  4. Click on top right corner burger menu
  5. Notice inactivity
  6. Scroll down the page
  7. Scroll back up to the burger menu
  8. Click on menu > notice it expands

Additional Context

User Report: https://wordpress.org/support/topic/webstories-plugin-breaking-block-theme-menus-on-mobile-devices/#post-17400665

  • Plugin Version: 1.35
  • WordPress Version: 6.4.3
  • Operating System: iOS / iPhone 15 Pro
  • Browser: Safari
@LuckynaSan LuckynaSan added the Type: Bug Something isn't working label Feb 5, 2024
@swissspidy swissspidy added the Group: Blocks Issues related to the provided Gutenberg Blocks label Feb 5, 2024
@swissspidy swissspidy added this to the 1.36.0 milestone Feb 5, 2024
@swissspidy swissspidy added the P1 High priority, must do soon label Feb 5, 2024
@swissspidy
Copy link
Collaborator

Thanks for filing this user report! 👍

I can reproduce this. Seems to be caused by the following CSS which displays the lightbox seemingly out of viewport with 0 opacity, but yet it overlaps the content, thus causing the menu button to not work.

.web-stories-list__lightbox,
.web-stories-singleton__lightbox {
justify-content: center;
align-items: center;
position: fixed;
background: black;
left: 0;
top: 0;
width: 100%;
height: 100%;
opacity: 0;
transform: translate(0, -100vh);
}

@AnuragVasanwala Would be great if you could look into this one

@AnuragVasanwala
Copy link
Collaborator

@swissspidy Absolutely! Will have a look and fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Group: Blocks Issues related to the provided Gutenberg Blocks P1 High priority, must do soon Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants