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

style(legend): align k7 design #54

Merged
merged 4 commits into from
Feb 15, 2019
Merged

Conversation

markov00
Copy link
Member

This PR align the legend design to the K7 design with the toggle button is always on the bottom left of the chart.

fix #34

'elasticChartsLegend',
`elasticChartsLegend--${legendPosition}`,
legendCollapsed.get() && 'elasticChartsLegend--collapsed',
debug && 'elasticChartsLegend--debug',
Copy link
Contributor

Choose a reason for hiding this comment

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

Could use object for conditional classes?

{
'elasticChartsLegend--collapsed': legendCollapsed.get(),
'elasticChartsLegend--debug': debug,
}

className={classNames('euiChartTooltip', showTooltip ? null : 'euiChartTooltip--hidden')}
className={classNames(
'elasticChartsTooltip',
showTooltip ? null : 'elasticChartsTooltip--hidden',
Copy link
Contributor

Choose a reason for hiding this comment

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

similar to the suggestion in this comment, could use object for the conditional class?

@emmacunningham
Copy link
Contributor

Not sure if it is intentional, but it looks like the top position of the legend toggle changes slightly on hover? This is most noticeable when the toggle has focus w/ the gray background as there appears to be whitespace between the toggle and the edge of the container:

legend_tooltip_hover_focus

@markov00
Copy link
Member Author

Not sure if it is intentional, but it looks like the top position of the legend toggle changes slightly on hover? This is most noticeable when the toggle has focus w/ the gray background as there appears to be whitespace between the toggle and the edge of the container:

legend_tooltip_hover_focus

@emmacunningham this is the default behaviour of EuIButtonIcon, @cchaos what do you think? do I need to remove the animation? on dashboard we don't have this because we are not using EUIButton directly.

@cchaos
Copy link
Contributor

cchaos commented Feb 13, 2019 via email

@emmacunningham
Copy link
Contributor

👍 sounds good! agree it's not detrimental to the user. was just curious as i'm new to these things :)

new the legend respect the chart theme margins. The toggle is now moved to the bottom left of the
chart as in kibana new design.

fix elastic#34
@markov00 markov00 merged commit 80112a7 into elastic:master Feb 15, 2019
@markov00
Copy link
Member Author

🎉 This PR is included in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Feb 19, 2019
@markov00 markov00 deleted the fix/legend-style branch February 19, 2019 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Issue released publicly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Align Legend design to K7 Design
3 participants