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

Position Sticky with Z-Index issue on tablet and mobile view #3167

Open
andeng1106 opened this issue Apr 25, 2024 · 0 comments
Open

Position Sticky with Z-Index issue on tablet and mobile view #3167

andeng1106 opened this issue Apr 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@andeng1106
Copy link

Describe the bug

  • Position Sticky with Z-Index set to 10 on tablet and mobile view doesn't work.
  • If I set both settings on Desktop, it works correctly on all responsive views
  • Issue both on editor and frontend
  • No specific theme

Current workaround:

  • Add a Position top setting (any) for the Position sticky to work
Screenshot 2024-04-25 at 2 17 03 PM

To Reproduce
Steps to reproduce the behavior:

  1. Add a new page
  2. Add a new block (e.g. Heading)
  3. (optional) Add a Spacer with a Height of at least 1000px to make the page scroll
  4. Switch responsive view to tablet or mobile
  5. In Advanced tab, set Z-Index to 10 and Position to Sticky
  6. Scroll down the page
  7. See that the Heading sticks correctly in the editor (correct)
  8. Save page and view frontend page
  9. Inspect page and toggle responsive to tablet or mobile
  10. Repeat step 6
  11. See that the Heading didn't stick or become sticky on tablet or mobile

Expected behavior

  • It should work as expected if I use Position Sticky with Z-Index on tablet and mobile setting.
  • Here's what it looks like on all responsive view if I use Position Sticky with Z-Index on desktop setting:
desktop.z-index.position.sticky.mov

Screenshots

tablet.mobile.z-index.and.position.sticky.mov
@andeng1106 andeng1106 added the bug Something isn't working label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant