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

Contrasting #1

Open
ffoodd opened this issue Apr 26, 2018 · 2 comments
Open

Contrasting #1

ffoodd opened this issue Apr 26, 2018 · 2 comments
Assignees

Comments

@ffoodd
Copy link

ffoodd commented Apr 26, 2018

Would it be possible to add a third value to a color array, specifying the best suitable color to use as contrasting text/background value?

I love this plugin, thanks!

@7studio 7studio self-assigned this Apr 26, 2018
@7studio
Copy link
Owner

7studio commented May 16, 2018

Hi @ffoodd,

I'm happy that you love this little plugin 😄

I don't know if it's possible to resolve your need because I don't understand how it will be implemented into the UI 😞

Can you provide me more details about your need? I will be delighted to improve my code with this first issue 😁

@ffoodd
Copy link
Author

ffoodd commented May 17, 2018

In fact, it would more be like a metadata for each color.
I don't know either how one would implement this, but in the UI it could simply be something like #ff00dd : Pink : #000 to provide a third value.

It depends on how choices are parsed, I guess.

WIP: I'm reading the acf_decode_choices() function in ACF, and it's limited to key and value. I quickly searched around ACF's documentation, but I didn't find a way to manage this for now.

I'll come back if I find anything x)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants