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

$field->toMostReadable() not using contrast values from blueprint #25

Open
FynnZW opened this issue Jun 21, 2022 · 3 comments
Open

$field->toMostReadable() not using contrast values from blueprint #25

FynnZW opened this issue Jun 21, 2022 · 3 comments

Comments

@FynnZW
Copy link

FynnZW commented Jun 21, 2022

The contrast list from the blueprint is not being used.
The function always returns #000 or #FFF.

My blueprint:

    backgroundcolor:
      type: colors
      contrast:
        - '#112233'
        - '#778899'
@FynnZW FynnZW changed the title $field->toMostReadable() not uses contrast values $field->toMostReadable() not using contrast values from blueprint Jun 21, 2022
@nilshoerrmann
Copy link
Member

Can you please check if this is still an issue in version 1.7.0? Thanks!

@FynnZW
Copy link
Author

FynnZW commented Nov 16, 2022

Just checked: It works sometimes.
When I use it in a normal fields section, it works.

But I am trying to use it as a setting inside a layout field. And in that case, it still only returns #FFF and #000.
I guess it does not find those layout settings in the blueprint?

@nilshoerrmann
Copy link
Member

Thanks for the info!

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