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

How do I best change the color of euiFormControlDisabledColor? #7547

Closed
jonasft opened this issue Feb 29, 2024 · 4 comments
Closed

How do I best change the color of euiFormControlDisabledColor? #7547

jonasft opened this issue Feb 29, 2024 · 4 comments
Labels
answered Issues answered by the EUI team - auto-closes open issues in 7 days if no follow-up response question

Comments

@jonasft
Copy link

jonasft commented Feb 29, 2024

Hello,

I'm trying to only change one specific case, text colors on disabled form controls. I see that the scss variable euiFormControlDisabledColor covers my need.

We do not use sass.

How do I best do this? I don't seem to be able to use modify on EuiProvider, as seen below.

Key information

Minimum reproducible sandbox

<EuiProvider
            colorMode="light"
            modify={{
                colors: {
                    LIGHT: {
                        euiFormControlDisabledColor: '#69707D',
                    },
                },
            }}
        >
</EuiProvider>
@cee-chen
Copy link
Contributor

cee-chen commented Mar 4, 2024

Hey Jonas! Apologies for the disappointing/semi-frustrating answer, but our form controls are not yet converted from Sass to Emotion, so until that happens, you won't be able to use EuiProvider or EuiThemeProvider to override any disabled colors.

We're anticipating making more progress on Emotion conversions in the next month or so, but until then, your options are:

  1. Adding Sass just for this variable override, and then compiling/importing your own .css file in your app
  2. Adding custom CSS with !important to override EUI's form disabled borders/backgrounds/colors.

@cee-chen cee-chen added the answered Issues answered by the EUI team - auto-closes open issues in 7 days if no follow-up response label Mar 4, 2024
@jonasft
Copy link
Author

jonasft commented Mar 6, 2024

Thank you for answering, @cee-chen !

Do you have a issue we can track to follow the progress of Emotion related to this?

@github-actions github-actions bot removed the answered Issues answered by the EUI team - auto-closes open issues in 7 days if no follow-up response label Mar 6, 2024
@cee-chen
Copy link
Contributor

cee-chen commented Mar 6, 2024

#5685 or #3912!

@cee-chen cee-chen added the answered Issues answered by the EUI team - auto-closes open issues in 7 days if no follow-up response label Mar 6, 2024
Copy link

👋 This issue hasn't seen activity in 3 days, so we're automatically closing this issue as answered. Please leave a comment if that's not the case, or if you have any remaining questions or issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered Issues answered by the EUI team - auto-closes open issues in 7 days if no follow-up response question
Projects
None yet
Development

No branches or pull requests

2 participants