Use mwc-button instead of paper-button (#2744)
* Convert from paper-button to mwc-button * Fixes * Bye paper-button * Fixes * Final fixes * Fix rebase conversion
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { html, LitElement, TemplateResult } from "lit-element";
|
||||
import "@polymer/paper-button/paper-button";
|
||||
import "@material/mwc-button";
|
||||
|
||||
import "../../../src/components/ha-card";
|
||||
import { longPress } from "../../../src/panels/lovelace/common/directives/long-press-directive";
|
||||
@@ -11,13 +11,13 @@ export class DemoUtilLongPress extends LitElement {
|
||||
${[1, 2, 3].map(
|
||||
() => html`
|
||||
<ha-card>
|
||||
<paper-button
|
||||
<mwc-button
|
||||
@ha-click="${this._handleTap}"
|
||||
@ha-hold="${this._handleHold}"
|
||||
.longPress="${longPress()}"
|
||||
>
|
||||
(long) press me!
|
||||
</paper-button>
|
||||
</mwc-button>
|
||||
|
||||
<textarea></textarea>
|
||||
|
||||
@@ -60,11 +60,6 @@ export class DemoUtilLongPress extends LitElement {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
paper-button {
|
||||
font-weight: bold;
|
||||
color: var(--primary-color);
|
||||
}
|
||||
|
||||
textarea {
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user