Skip to content

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

Merged
snide merged 2 commits intoelastic:masterfrom
snide:bug/ieflexgrowth
Jan 17, 2018
Merged

Set FlexGroup to grow: 1 to be more friendly with IE11#315
snide merged 2 commits intoelastic:masterfrom
snide:bug/ieflexgrowth

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant