-
Notifications
You must be signed in to change notification settings - Fork 77
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
Enhancement: Rename 'color' component to 'color-picker'. #1437
Comments
Follow-up questions:
For MVB, I was working w/ @mitc7862 on an inlined color component and he hashed out designs for a more generic component. I think it makes sense to add to this repo to allow this UX for other cases and not only color. I'll create an issue for it this week. |
I think we can do that if hex will only be used by color picker.
If we do it when we move to the new repo then it isn't a breaking change.
Sure, we will have |
If it's an input component, it might make more sense for the input to be first. That will allow us to group the input components and have consistency there. However, if it would only be used internally then there might be an exception here. |
I think the "input that launches the color picker" (with the preview swatch, that Mitch had specced) is valid as a "calcite-input-*", but that's separate from the current "hex input" correct? |
@jcfranco, from the meeting we had today, we should merge this one and not wait for 1.0. |
Checking back in on this, can we merge @jcfranco? |
I'll work on having a PR by tomorrow at the latest. |
Do we need an issue for the input version that opens a color picker or is there already one? |
I don't think we have one. I'll create it. |
☝️ #1616 |
Installed.
Event renames landing soon (#1624). |
#1437 BREAKING CHANGE: The following events were renamed: * `calciteColorChange` -> `calciteColorPickerChange` * `calciteColorHexInputChange` -> `calciteColorPickerHexInputChange`
Verified locally w/ beta.51. |
Description
For consistency and specificity, I think we should rename the
color
component tocolor-picker
.We should also consider renaming its child components.
calcite-color-hex-input
=>calcite-input-color-hex
. // input first since it's an input component.calcite-color-swatch
=>calcite-color-picker-swatch
. If this could ever be used outside of this component then I would proposecalcite-color-swatch
.Question(s)
calcite-input-color-picker
?Acceptance Criteria
calcite-color
is consistent withcalcite-time-picker
andcalcite-date-picker
.Relevant Info
Which Component
Example Use Case
NA.
The text was updated successfully, but these errors were encountered: