Skip to content

BREAKING: wc-codemirror now uses shadowDOM encapsulation

Compare
Choose a tag to compare
@evanplaice evanplaice released this 12 Nov 21:23
· 7 commits to main since this release

Unlike previous iterations, in v2.0+ wc-codemirror is now shadowDOM encapsulated.

That means...

  • setting styles globally will not change the styling of the web component
  • CodeMirror and its themes will no longer pollute the global CSS namespace
  • a theme's import (ie <link>) needs to be contained inside the body of the web component tag
  • it may require more work to override the default and/or theme styling