-
Notifications
You must be signed in to change notification settings - Fork 121
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
chore: legend gap removal #968
Conversation
Codecov Report
@@ Coverage Diff @@
## master #968 +/- ##
==========================================
+ Coverage 71.08% 71.16% +0.07%
==========================================
Files 344 360 +16
Lines 10959 10587 -372
Branches 2393 2161 -232
==========================================
- Hits 7790 7534 -256
+ Misses 3155 2964 -191
- Partials 14 89 +75
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
I think this was working at one point, not 100% sure. This was discussed at length here #749 (comment) when implementing the legend actions. I don't think this is the right solution for this as it is because it changes the aesthetic of the legend. That said, I 100% agree this needs to be corrected. |
Thanks @nickofthyme this PR doesn't change aesthetics perceptibly, except a 1-2px shift of the entire legends block upwards, but maybe this is what you referred to (CI detects it) - so it's great to go ahead as we discussed on our call |
f1fd618
to
d9722b6
Compare
@monfera Checkout this commit d9722b6. I am sorry to force push to your branch but a made a copy just in case. The trick is to add half of the padding to the |
@nickofthyme looks great, I agree with the |
@miukimiu Could you take a look at these changes? Should be the same UI overall. |
@nickofthyme how should the still remaining CI issue be solved? Is it a question of regenerating some image, or something deeper? Should we, and/or @miukimiu look into removing the visual difference you show above? My slant is, seeing this merged soon as it's a small code change yet good usability improvement, and I'm not concerned about snapshot changes of a couple of pixels of legend position |
@monfera I'll look into the small px shift. |
5cbcca2
to
47493e2
Compare
🎉 This PR is included in version 24.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
Closes #944
More important for the upcoming hierarchical layout hover strategy PR and the flame/icicle chart than for existing charts
Before, with gaps, see how the activation is temporarily lost between rows, with all colors flashing back:
After, no gaps, no flashing:
It shifts images up by 1px or 2px, which seems OK, as it's important that
padding-top
andpadding-bottom
equal (text is in the vertical middle of the mouse capture zone)Checklist
Delete any items that are not applicable to this PR.