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

Bottom-Center Snackbar is max 50% width at mobile breakpoints #8572

Closed
1 task done
mattd opened this issue Oct 6, 2017 · 4 comments
Closed
1 task done

Bottom-Center Snackbar is max 50% width at mobile breakpoints #8572

mattd opened this issue Oct 6, 2017 · 4 comments
Assignees
Labels
bug 🐛 Something doesn't work component: snackbar This is the name of the generic UI component, not the React module!

Comments

@mattd
Copy link

mattd commented Oct 6, 2017

  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

At mobile breakpoints, a <Snackbar /> positioned bottom-center should span the whole width of the window.

Current Behavior

At mobile breakpoints, a <Snackbar /> positioned bottom-center takes up at maximum the center 50% of the window. If the message is shorter than ~50% of the window, the snackbar will be smaller.

Steps to Reproduce (for bugs)

This bug is visible in the demo site under the "Positioned" section: https://material-ui-1dab0.firebaseapp.com/demos/snackbars/#positioned

  1. Click "Bottom-Center".
  2. Observe that the Snackbar is centered and not full width.
  3. Click "Bottom-Left".
  4. Observe that the Snackbar is full width.

Context

This bug is especially a problem when there are more than 8 or 9 words in the message, along with an action, and the snackbar looks oddly tall.

Your Environment

Tech Version
Material-UI v1.0.0-beta.15
React v16.0.0
browser Chrome
@oliviertassinari
Copy link
Member

top center is broken too.

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: snackbar This is the name of the generic UI component, not the React module! v1 good first issue Great for first contributions. Enable to learn the contribution process. and removed good first issue Great for first contributions. Enable to learn the contribution process. labels Oct 6, 2017
@oliviertassinari oliviertassinari self-assigned this Oct 6, 2017
@mattd
Copy link
Author

mattd commented Oct 6, 2017

Woot! Thanks, @oliviertassinari! I appreciate the super quick fix.

@keatz55
Copy link

keatz55 commented Dec 23, 2017

Getting the same for Material-UI v0.20.0

@shilangyu
Copy link

Im sorry, did they style guides change? It seems that snackbars no longer go full width on mobile but stay the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: snackbar This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

4 participants