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

[REFACTOR] Happy Path: use the CSSStyleSheet API to create CSS rule #40

Open
tbouffard opened this issue Oct 12, 2022 · 0 comments
Open

Comments

@tbouffard
Copy link
Member

Note: not needed if we implement #39

Currently, for the happy-path use case, we add a lot of CSS rules with JS code by directly updating the head HTML element in the DOM.
We could instead create the rules using the CSSStyleSheet.insertRule API.

https://github.com/assynour/icpm-demo-2022/blob/aef4e01609ccd557a5e8fd615fd4112889ae3e47/src/happy-path.js#L80-L89

@tbouffard tbouffard changed the title [REFACTOR] Use the CSSStyleSheet API to create CSS rule in the happy-path use case [REFACTOR] Happy Path: use the CSSStyleSheet API to create CSS rule Oct 23, 2022
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