query-monitor
query-monitor copied to clipboard
Switch to a web component
I've been hacking around with the idea of switching QM's output to a web component so its styles are isolated and then I don't need to worry about forcibly overriding theme styles with !important
. It's sort of working. Has promise. Not going to focus on this until I've switched to front end rendering though.
- Fixes #591
- Fixes #673
Has promise.
Yep, custom elements ftw. But unless you transpile to ES5, be sure to announce you're kicking IE11 and themsuch to the curb.
~~Yeah I need to look into a polyfill~~ I'll be dropping IE support
Would this mean that QM output would not occur in non-JS situations (ex: testing)?
Yep, although QM already requires JavaScript in order to work.