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

Set FlexGroup to grow: 1 to be more friendly with IE11 #315

Merged
merged 2 commits into from
Jan 17, 2018

Conversation

snide
Copy link
Contributor

@snide snide commented Jan 17, 2018

This is more a bug that popped up in Kibana, then an EUI bug, but this makes usage a little more fault tolerant. IE11 has trouble with nesting flex groups. The 0% fix from #308 actually works as it should, but Kibana was using a wrapping display: flex element (to provide an href) around EuiFlexItems which caused the groups to not size correctly when nested.

Applying a flex-grow: 1 to groups themselves fixes that issue and causes no harm to the functionality of our system. For IE11, it'll act as you'd expect, even if you happen to add some flexy wrappers around our components.

I've tested this in every browser and also updated our docs to use a more rigorous nesting scenario (mostly wanted to make sure the bugfix didn't force growth against <FlexItem> parents that had grow={false}

@snide
Copy link
Contributor Author

snide commented Jan 17, 2018

cc @walterra

@snide snide added the bug label Jan 17, 2018
@snide snide merged commit b59cf36 into elastic:master Jan 17, 2018
@snide snide deleted the bug/ieflexgrowth branch January 17, 2018 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant