-
Notifications
You must be signed in to change notification settings - Fork 187
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 support for margin to ordinal color legend. #1082
Add support for margin to ordinal color legend. #1082
Conversation
src/legends/swatches.js
Outdated
? `margin-bottom: 0.5em;` | ||
: `margin-bottom: ${+marginBottom}px;` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this mix seems like a problem, not sure how to unify that properly. Should we default to the equivalent number of pixels, on line 93?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated it to default to 8px
which should be the equivalent. What do you think?
Not sure what went on with the previous commit (32e26ed) but hopefully it's ok now. |
For me it seems like 5px instead of 8px would make it visually unchanged in the unit tests. |
I'm sorry I went back to the original idea, in order to minimize churn. Please add your review (or thumbs up or down) on #1090. Thank you for the contribution! |
Fixes #1080 (reply in thread)