Open tbouffard opened 2 years ago
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
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