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

Only the default slot of <wa-page> should scroll horizontally #154

Open
fmercille opened this issue Jan 24, 2025 · 0 comments
Open

Only the default slot of <wa-page> should scroll horizontally #154

fmercille opened this issue Jan 24, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@fmercille
Copy link

Using 3.0.0-alpha.9

Describe the bug

When using <wa-page> as the main layout of a page, and the default slot contains something that overflows horizontally, the entire page, including headers, footers and the navigation panel will scroll horizontally. Only the default slot should scroll so that the other slots remain visible and "sticky" on the horizontal axis.

To Reproduce

Steps to reproduce the behavior:

  1. Create a page using <wa-page> and populate the slots for header, navigation
  2. In the default slot, display something that is wider than the viewport (e.g. a <table> with dozens of columns)
  3. Scroll the page horizontally (resize your browser window if necessary)
  4. Notice that the navigation scrolls away, as well as the header.

Demo

Here's a codepen showing the issue: https://codepen.io/fmercille/pen/ogvQXLX

Load it, and then scroll the page horizontally. Notice how the banner, header, subheader, main-footer and footer do not extend all the way (which is less than ideal if they are themed according to the brand of the site), and that the navigation panel disappears.

@fmercille fmercille added the bug Something isn't working label Jan 24, 2025
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