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

--bg-modal not working if white color has been modified by theme #8458

Open
1 of 3 tasks
MattBevis opened this issue Apr 23, 2024 · 0 comments
Open
1 of 3 tasks

--bg-modal not working if white color has been modified by theme #8458

MattBevis opened this issue Apr 23, 2024 · 0 comments

Comments

@MattBevis
Copy link

MattBevis commented Apr 23, 2024

Description

When I have modified the theme.colors white, the --modal-bg variable doesn't pull through anymore. It uses a value of colors . white (spacing intentional) instead of colors.white is there anyway around this?

Please see my reproduction link below

Link to Reproduction

https://github.com/MattBevis/chakra-ui-modal-example

Steps to reproduce

  1. Modify the theme white color
  2. Create a modal and open it
  3. See transparent modal background
  4. Inspect the section element of the modal to see the css variable --modal-bg not being applied correctly

Chakra UI Version

2.8.2

Browser

Good Chrome 123

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

No response

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

1 participant