Skip to content
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

Merged
merged 4 commits into from
Feb 3, 2022

Conversation

laviomri
Copy link
Contributor

@laviomri laviomri commented Feb 3, 2022

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).
image
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.

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";
Copy link
Contributor

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 ?

Copy link
Contributor Author

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?

Copy link
Contributor

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?

Copy link
Contributor Author

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

@laviomri laviomri merged commit d745c07 into master Feb 3, 2022
@laviomri laviomri deleted the feature/omri/allow-non-monday-color-picker branch February 3, 2022 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants