- ${localize('common.show_warning')}
-
- `;
+ return this.showWarning(localize('common.show_warning'));
}
return html`
@@ -100,14 +93,26 @@ export class BoilerplateCard extends LitElement {
}
}
- static get styles(): CSSResult {
- return css`
- .warning {
- display: block;
- color: black;
- background-color: #fce588;
- padding: 8px;
- }
+ private showWarning(warning: string): TemplateResult {
+ return html`
+