Revert "Add left text alignment to call service button" (#25377)

This commit is contained in:
Bram Kragten 2025-05-08 17:24:10 +02:00 committed by GitHub
parent ba4ec960c8
commit 130839ee7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 9 deletions

View File

@ -1,5 +1,5 @@
import type { TemplateResult } from "lit";
import { css, LitElement, html } from "lit";
import { LitElement, html } from "lit";
import { customElement, property } from "lit/decorators";
import type { HassServiceTarget } from "home-assistant-js-websocket";
import { showConfirmationDialog } from "../../dialogs/generic/show-dialog-box";
@ -81,12 +81,6 @@ class HaCallServiceButton extends LitElement {
this._callService();
}
}
static styles = css`
:host {
--ha-button-text-align: start;
}
`;
}
declare global {

View File

@ -16,14 +16,12 @@ export class HaButton extends Button {
}
.mdc-button {
height: var(--button-height, 36px);
text-align: var(--ha-button-text-align, center);
}
.trailing-icon {
display: flex;
}
.slot-container {
overflow: var(--button-slot-container-overflow, visible);
width: 100%;
}
:host([destructive]) {
--mdc-theme-primary: var(--error-color);