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

Need to get rid of DOM Manipulation to change background color in main page (i.e classname : Whole ) #2

Open
Abusayid693 opened this issue Aug 2, 2021 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@Abusayid693
Copy link
Owner

Abusayid693 commented Aug 2, 2021

document.querySelector(".Whole").style.background = color.hex;

This is where class name "Whole" applies

className={cx("Whole", {

Note : Using react Context API to pass new color to main page (from color-picker) ,then using js object to set this new color might work.

@Abusayid693 Abusayid693 added bug Something isn't working enhancement New feature or request labels Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant