How to use the lit-element/lit-element.unsafeCSS function in lit-element

To help you get started, we’ve selected a few lit-element examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DoubleTrade / lit-datatable / iron-flex-import.js View on Github external
import { unsafeCSS } from 'lit-element/lit-element';
import '@polymer/iron-flex-layout/iron-flex-layout-classes';

const ironFlexLayoutThemeTemplate = customElements.get('dom-module').import('iron-flex', 'template');
const ironFlexLayoutAlignThemeTemplate = customElements.get('dom-module').import('iron-flex-alignment', 'template');

export const ironFlexLayoutTheme = unsafeCSS(
  ironFlexLayoutThemeTemplate.content.firstElementChild.textContent,
);
export const ironFlexLayoutAlignTheme = unsafeCSS(
  ironFlexLayoutAlignThemeTemplate.content.firstElementChild.textContent,
);
github DoubleTrade / lit-datatable / iron-flex-import.js View on Github external
import { unsafeCSS } from 'lit-element/lit-element';
import '@polymer/iron-flex-layout/iron-flex-layout-classes';

const ironFlexLayoutThemeTemplate = customElements.get('dom-module').import('iron-flex', 'template');
const ironFlexLayoutAlignThemeTemplate = customElements.get('dom-module').import('iron-flex-alignment', 'template');

export const ironFlexLayoutTheme = unsafeCSS(
  ironFlexLayoutThemeTemplate.content.firstElementChild.textContent,
);
export const ironFlexLayoutAlignTheme = unsafeCSS(
  ironFlexLayoutAlignThemeTemplate.content.firstElementChild.textContent,
);