From 130839ee7b4ef20c60f2a29aa32edee706ad8f92 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Thu, 8 May 2025 17:24:10 +0200 Subject: [PATCH] Revert "Add left text alignment to call service button" (#25377) --- src/components/buttons/ha-call-service-button.ts | 8 +------- src/components/ha-button.ts | 2 -- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/buttons/ha-call-service-button.ts b/src/components/buttons/ha-call-service-button.ts index f7e2715a60..1476ebcffc 100644 --- a/src/components/buttons/ha-call-service-button.ts +++ b/src/components/buttons/ha-call-service-button.ts @@ -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 { diff --git a/src/components/ha-button.ts b/src/components/ha-button.ts index ebe3e9f037..5ccbcadd14 100644 --- a/src/components/ha-button.ts +++ b/src/components/ha-button.ts @@ -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);