-
Notifications
You must be signed in to change notification settings - Fork 65
Updated colorpicker css styles to remove extra pixels #1948
Updated colorpicker css styles to remove extra pixels #1948
Conversation
…d space beside colorpickers
Codecov Report
@@ Coverage Diff @@
## master #1948 +/- ##
======================================
Coverage 100% 100%
======================================
Files 424 424
Lines 8968 8968
Branches 1326 1326
======================================
Hits 8968 8968 Continue to review full report at Codecov.
|
@Blackbaud-TrevorBurch your work definitely fixes the problem, but lets chat about the larger CSS structure of the colorpicker here for a sec. The markup looks something like this:
The big trick to this whole thing is making it appear like the input is the clickable widget, when in fact, its not. We do that with some textbook positioning of a hidden element on top of the input to intercept the click. However, it looks like when this was originally written, we put the positioning code on children elements of the dropdown. In this case, What I'm proposing is this: Setting positioning on deep children elements seems risky and takes more code. Would we have more control by setting styles on the parent instead of its children individually? For example, remove all the positioning rules to |
@Blackbaud-AlexKingman I made some changes here to go with what you suggested. I also removed a |
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 looks great. Nice work! 🚢 ahoy!
Resolves #1941