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

Hidden class is missing when useHTML in legend #6342

Closed
sebastianbochan opened this Issue Feb 6, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@sebastianbochan
Contributor

sebastianbochan commented Feb 6, 2017

Expected behaviour

.highcharts-legend-item-hidden should be applied

Actual behaviour

Hidden class (highcharts-legend-item-hidden) is missing when useHTML in legend

Live demo with steps to reproduce

Demo:

Affected browser(s)

All

@oysteinmoseng oysteinmoseng added the Bug label Feb 16, 2017

@sebastianbochan

This comment has been minimized.

Show comment
Hide comment
@sebastianbochan

sebastianbochan Jun 27, 2017

Contributor

Internal note
It looks like in the colorizeItem function, addClass / attr() methods cannot be used for div element. We should use setAttribute on item.legendGroup.div element.

@TorsteinHonsi do you have any better suggestion?

Contributor

sebastianbochan commented Jun 27, 2017

Internal note
It looks like in the colorizeItem function, addClass / attr() methods cannot be used for div element. We should use setAttribute on item.legendGroup.div element.

@TorsteinHonsi do you have any better suggestion?

@sebastianbochan sebastianbochan self-assigned this Jun 27, 2017

@TorsteinHonsi

This comment has been minimized.

Show comment
Hide comment
@TorsteinHonsi

TorsteinHonsi Jul 17, 2017

Collaborator

Demo with the fix applied: http://jsfiddle.net/s8m9t47s/1/
(Note: styled mode doesn't currently work with github.highcharts.com).

Collaborator

TorsteinHonsi commented Jul 17, 2017

Demo with the fix applied: http://jsfiddle.net/s8m9t47s/1/
(Note: styled mode doesn't currently work with github.highcharts.com).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment