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

config.colors.brand unable to override Theme color #3657

Open
jpgom3z opened this issue Jun 19, 2024 · 0 comments
Open

config.colors.brand unable to override Theme color #3657

jpgom3z opened this issue Jun 19, 2024 · 0 comments
Labels

Comments

@jpgom3z
Copy link

jpgom3z commented Jun 19, 2024

Describe the bug

Hi team, I'm customizing a sign-in page using the code editor under Customizations > [BrandName] > Sign-in page. I'm currently just trying to modify the the 'Sign In' button color, overriding the color that is hardcoded in the Theme.

I'm trying to change the colors.brand property in OktaUtil.getSignInWidgetConfig() using an if-else conditional.

image

When I use Chrome Dev tools, I see that the browser is trying to show the desired color, but there's an '!important' CSS Property taking precedence and enforcing the color in the Theme CSS.

image

image

Theme Color:
image

Reproduction Steps

  1. Modify colors.brand property in OktaUtil.getSignInWidgetConfig() in Sign-In page code editor
  2. Open Dev Tools in the page and inspect the button
  3. Check the background css property.

SDK Versions

Sign-in widget version: ^7

Additional Information

No response

@jpgom3z jpgom3z added the bug label Jun 19, 2024
@jpgom3z jpgom3z changed the title config.colors.brand not working config.colors.brand unable to override Theme color Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant