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

Add optional flex prop to LegendLabel #370

Merged
merged 1 commit into from
Oct 6, 2018

Conversation

jdmoody
Copy link
Contributor

@jdmoody jdmoody commented Oct 5, 2018

🚀 Enhancements

  • Add optional flex prop for overriding flex css property to LegendLabel

🐛 Bug Fix

  • Allow overriding flex property to fix IE flexbox bug. IE 11 does not seem to expand to minimum content width when flex-basis is 0px (this is the case when using the shorthand flex: 1).

I encountered a bug with the LegendLabel layout on IE11, and setting the flex property to flex: auto fixed it. I was hesitant to change the style for all usages, so I added an optional flex prop to Legend and LegendLabel.

Copy link
Member

@hshoff hshoff left a comment

Choose a reason for hiding this comment

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

LGTM thanks for the contribution!

@hshoff hshoff added this to the v0.0.178 milestone Oct 6, 2018
@hshoff hshoff merged commit 92f2580 into airbnb:master Oct 6, 2018
@jdmoody
Copy link
Contributor Author

jdmoody commented Oct 8, 2018

Np! Thanks for making such a great visualization library 🙏

@jdmoody jdmoody deleted the legend-label-flex-prop branch October 8, 2018 17:54
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.

2 participants