Skip to content

Ability to use CSS in Shadow DOM

Compare
Choose a tag to compare
@karol-f karol-f released this 03 Mar 09:40
· 194 commits to master since this release

Options object now accept shadowCss string that will be inserted into element's Shadow DOM.

Example:

import MyElement from './MyElement.vue';

Vue.customElement('my-element', MyElement, {
  shadow: true,
  shadowCss: `
  .card {
     background-color: blue;
  }`
});