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

[Snackbar] Button get lost with long text #4676

Closed
avocadowastaken opened this issue Jul 11, 2016 · 1 comment
Closed

[Snackbar] Button get lost with long text #4676

avocadowastaken opened this issue Jul 11, 2016 · 1 comment
Labels
component: button This is the name of the generic UI component, not the React module! component: snackbar This is the name of the generic UI component, not the React module! v0.x

Comments

@avocadowastaken
Copy link
Contributor

Problem description

Here what it's look like:

screen shot 2016-07-11 at 09 14 40

How it should look:

screen shot 2016-07-11 at 09 31 02

Steps to reproduce

 <Snackbar
  action="Dismiss"
  onActionTouchTap={hideError}
  onRequestClose={hideError}
  open
  message={"Request has been terminated Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc."}
/>

Steps to fix

In SnackbarBody put button element before span element.

Also in styles.content add

overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis'

Versions

  • Material-UI: 0.15.2
  • React: 15.2.0
  • Browser: any
@aahan96
Copy link
Contributor

aahan96 commented Aug 17, 2016

@umidbekkarimov Closing this in lieu of #4294

@aahan96 aahan96 closed this as completed Aug 17, 2016
@oliviertassinari oliviertassinari added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Dec 21, 2022
@zannager zannager added component: snackbar This is the name of the generic UI component, not the React module! component: button This is the name of the generic UI component, not the React module! v0.x and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: button This is the name of the generic UI component, not the React module! component: snackbar This is the name of the generic UI component, not the React module! v0.x
Projects
None yet
Development

No branches or pull requests

4 participants