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

[Tab] Fix fullWidth CSS #12495

Merged
merged 2 commits into from
Aug 13, 2018
Merged

[Tab] Fix fullWidth CSS #12495

merged 2 commits into from
Aug 13, 2018

Conversation

jankjr
Copy link
Contributor

@jankjr jankjr commented Aug 13, 2018

auto is not a valid value for max-width according to
https://developer.mozilla.org/en-US/docs/Web/CSS/max-width

and

https://www.w3.org/wiki/CSS/Properties/max-width

Chrome og firefox ignore the max-width: auto.

max-width: 100% yields expected behaviour on Chrome and Firefox.

@jankjr jankjr changed the title fix fullwidth for tab [Tab] fix fullwidth for tab Aug 13, 2018
@@ -66,7 +66,7 @@ export const styles = theme => ({
fullWidth: {
flexShrink: 1,
flexGrow: 1,
maxWidth: 'auto',
maxWidth: '100%',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use the default value instead, none?

@oliviertassinari oliviertassinari changed the title [Tab] fix fullwidth for tab [Tab] Fix fullWidth CSS Aug 13, 2018
@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: tabs This is the name of the generic UI component, not the React module! labels Aug 13, 2018
@oliviertassinari oliviertassinari merged commit 7c2b4a3 into mui:master Aug 13, 2018
@oliviertassinari
Copy link
Member

@jankjr It's a great first pull request on Material-UI 👌🏻. Thank you for giving it a shot!

@jankjr
Copy link
Contributor Author

jankjr commented Aug 13, 2018

I can confirm that none also works in our tests as well. Yeah I guess its a better fix 👍

No problem, great library! 💯

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: tabs This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants