diff --git a/packages/webawesome/scripts/plop/plopfile.js b/packages/webawesome/scripts/plop/plopfile.js index 48be12f1b..da5664c18 100644 --- a/packages/webawesome/scripts/plop/plopfile.js +++ b/packages/webawesome/scripts/plop/plopfile.js @@ -37,7 +37,7 @@ export default function (plop) { }, { type: 'add', - path: '../../src/components/{{ tagWithoutPrefix tag }}/{{ tagWithoutPrefix tag }}.styles.ts', + path: '../../src/components/{{ tagWithoutPrefix tag }}/{{ tagWithoutPrefix tag }}.css', templateFile: 'templates/component/styles.hbs', }, { diff --git a/packages/webawesome/scripts/plop/templates/component/component.hbs b/packages/webawesome/scripts/plop/templates/component/component.hbs index c44b25d00..d84d77930 100644 --- a/packages/webawesome/scripts/plop/templates/component/component.hbs +++ b/packages/webawesome/scripts/plop/templates/component/component.hbs @@ -1,11 +1,9 @@ -import { customElement, property } from 'lit/decorators.js'; import { html } from 'lit'; -import { LocalizeController } from '../../utilities/localize.js'; +import { customElement, property } from 'lit/decorators.js'; import { watch } from '../../internal/watch.js'; -import componentStyles from '../../styles/component.styles.js'; -import styles from './test-element.styles.js'; import WebAwesomeElement from '../../internal/webawesome-element.js'; -import type { CSSResultGroup } from 'lit'; +import componentStyles from '../../styles/component/host.css'; +import styles from './{{ tagWithoutPrefix tag }}.css'; /** * @summary Short summary of the component's intended use. @@ -15,8 +13,6 @@ import type { CSSResultGroup } from 'lit'; * * @dependency wa-example * - * @event wa-event-name - Emitted as an example. - * * @slot - The default slot. * @slot example - An example slot. * @@ -26,9 +22,7 @@ import type { CSSResultGroup } from 'lit'; */ @customElement("{{ tag }}") export default class {{ properCase tag }} extends WebAwesomeElement { - static styles: CSSResultGroup = [componentStyles, styles]; - - private readonly localize = new LocalizeController(this); + static shadowStyle = [componentStyles, styles]; /** An example attribute. */ @property() attr = 'example'; diff --git a/packages/webawesome/scripts/plop/templates/component/styles.hbs b/packages/webawesome/scripts/plop/templates/component/styles.hbs index 940a1557b..5d4e87f30 100644 --- a/packages/webawesome/scripts/plop/templates/component/styles.hbs +++ b/packages/webawesome/scripts/plop/templates/component/styles.hbs @@ -1,7 +1,3 @@ -import { css } from 'lit'; - -export default css` - :host { - display: block; - } -`; +:host { + display: block; +} diff --git a/packages/webawesome/scripts/plop/templates/component/tests.hbs b/packages/webawesome/scripts/plop/templates/component/tests.hbs index 7b6458ca6..122c3b2a3 100644 --- a/packages/webawesome/scripts/plop/templates/component/tests.hbs +++ b/packages/webawesome/scripts/plop/templates/component/tests.hbs @@ -1,4 +1,3 @@ -import '../../../dist/webawesome.js'; import { expect, fixture, html } from '@open-wc/testing'; describe('<{{ tag }}>', () => {