Skip to content

Commit 78ab16d

Browse files
author
Dennis Labordus
committed
Separate styling in component.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent 2911146 commit 78ab16d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/compas/CompasSettings.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ export class CompasSettingsElement extends LitElement {
108108
value="${this.compasSettings.sclAutoAlignmentServiceUrl}" required>
109109
</mwc-textfield>
110110
111-
<mwc-button style="--mdc-theme-primary: var(--mdc-theme-error)"
112-
@click=${() => {
111+
<mwc-button @click=${() => {
113112
if (this.reset()) {
114113
this.close();
115114
}
@@ -127,6 +126,10 @@ export class CompasSettingsElement extends LitElement {
127126
margin: 10px;
128127
width: 100%;
129128
}
129+
130+
mwc-button {
131+
--mdc-theme-primary: var(--mdc-theme-error)
132+
}
130133
`
131134
}
132135

0 commit comments

Comments
 (0)