Add left text alignment to call service button (#24846)

This commit is contained in:
Lucas
2025-05-08 09:58:46 +02:00
committed by GitHub
parent 6b568307a4
commit c8cffef647
2 changed files with 9 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
import type { TemplateResult } from "lit";
import { LitElement, html } from "lit";
import { css, 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,6 +81,12 @@ class HaCallServiceButton extends LitElement {
this._callService();
}
}
static styles = css`
:host {
--ha-button-text-align: start;
}
`;
}
declare global {