-
Notifications
You must be signed in to change notification settings - Fork 327
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
Allow non-monday colors picker #513
Conversation
import PropTypes from "prop-types"; | ||
import cx from "classnames"; | ||
import NOOP from "lodash/noop"; | ||
import { COLOR_STYLES } from "../../../../general-stories/colors/colors-vars-map"; | ||
import { COLOR_STYLES, contentColors } from "../../../../general-stories/colors/colors-vars-map"; |
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.
can we move these to something not related to stories ?
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'm not sure I understand you correctly - right now it's not related to storybook. what are you suggesting?
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 think it's about to move this constants to different location which not related to stories, maybe the colors util?
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.
oh I see it now! done
Task

Allows non-monday colors to be rendered in the color picker.
Why? Since sometimes we need to color picker for existing colors, that aren't part of our "official" palette. (e.g. on the workspace color picker).
I want to discourage the usage of this flag, so I named it in accordingly (the word "force.." always makes you think twice 😄 ).
Also, I intentionally didn't add a story, since I don't want it to be too familiar.