-
Notifications
You must be signed in to change notification settings - Fork 897
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
mwc-tabs don't appear to support scrolling on desktop #487
Comments
Why is this low severity? This makes the tabs pretty much useless on a desktop? The paper tabs could be dragged by the mouse and had arrows on both sides. This has neither and thus a tab bar with a lot of tabs is not useable. |
Scrolling the tab bars works for me with horizontal touchpad scrolling on macOS 11 and Chrome 87. |
Yes, it works with normal scroll events, but that is not something a user with a mouse will likely use. They will click and drag the tabs, and that is no longer possible. That is also how it used to work with |
Additionally I think the tab bar should have indicators to let the user know that there are tabs to the left or right. Depending on the width of the tab-bar and the visible tabs, it may not be obvious that there is any more than what is showing. |
Obsolete with M3 once tabs are ready |
@asyncLiz any updates on this? tabs.mp4 |
The pre-1.0 beta |
Thank you for the update. And what about arrows? When the tabs didn't fit the screen the paper tabs added arrows that allowed users to scroll tabs as seen in video |
We don't have plans to add those arrows since it isn't part of the M3 design spec for tabs, but you could add |
** PLEASE READ THIS BEFORE FILING AN ISSUE **
I'm submitting a:
What OS are you using?
Windows 10
What browser(s) is this bug affecting:
Chrome Version 77.0.3865.75 (Official Build) (32-bit)
Current behavior:
Unable to scroll through tabs in browser
Expected behavior:
Using a mouse you should be able to scroll through tabs
Steps to reproduce:
https://material-components.github.io/material-components-web-components/demos/tabs.html
If you shrink your desktop browser so that the "Scrolling" example does not display all ten tabs, you'll find that there is no way to scroll through them using your mouse unless you click and use the mouse wheel. On mobile, it works as expected.
Related code:
// insert any relevant code here or add a include a codepen
Other information:
The text was updated successfully, but these errors were encountered: