-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
ColorInputView: displayed value should be converted back to a named color (if possible) #6241
Comments
Last week we discussed in P2P meeting with @Reinmar, that I will clean up the API of this.fire( 'execute', {
value: item.color,
hasBorder: item.options.hasBorder,
label: item.label
); to just this.fire( 'execute', item ); as this is precisely the one of given items that was selected. Preferably as a separate micro PR, as it affects also some other components that delegate this event. I also thought about a small refactoring. I'd like to change ColorDefinition's
@Reinmar WDYT? Both changes would be breaking to the (partially undocumented) API. |
Doesn't that change the feature config format? That'd be a significant cost, so unless that's a blocker (I read it's not) I wouldn't do that. |
I think the major cost in confusing, inconsistent API here. We would end up with:
or
|
There is also an option
|
While waiting for your opinion, I continue solving OP with approach no. 1 - the ugliest in my opinion, but the easiest to merge. |
I'm trying to understand one thing here. I understand that the API is messed up and that's confusing for developers. What I don't get is – will this change affect the config of end user features like font colors? Because that would be a significant breaking change for them and that's a big cost for the project. |
It will. So, changing My only doubt now is how much should I bother to preserve an undocumented API - like |
Other (table): Display a human readable color label in the text input field. Closes #6241.
📝 Provide a description of the improvement
We could simply write "Green" here, cause that's the color that I picked.
If you'd like to see this improvement implemented, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: