-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[Snackbar] Add multiline support #3860
Labels
component: snackbar
This is the name of the generic UI component, not the React module!
new feature
New feature or request
Comments
@mbrookes I'll tackle it in the next few days :) |
3 tasks
3 tasks
Is there any update on this? |
You can archive it with styling like const message = 'First line\nSecond Line'
...
<Snackbar
message={message}
bodyStyle={{ height: 'auto', lineHeight: '28px', padding: 24, whiteSpace: 'pre-line' }}
/> Maybe try and set a maxHeight for mobile devices. |
oliviertassinari
added
the
component: snackbar
This is the name of the generic UI component, not the React module!
label
Dec 18, 2016
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
component: snackbar
This is the name of the generic UI component, not the React module!
new feature
New feature or request
It would be great if the Snackbar would support multiline texts. The specs for Snackbar multiline support can be found here:
https://www.google.com/design/spec/components/snackbars-toasts.html#snackbars-toasts-specs
This feature has already been mentioned here #2826 by @mbrookes
Do you think you could fold in this little change in one of the following releases?
The text was updated successfully, but these errors were encountered: