Add border radius css var ha prefix (#26411)

This commit is contained in:
Wendelin
2025-08-06 14:59:34 +02:00
committed by GitHub
parent 37def6d3e4
commit 96796ac5da
5 changed files with 20 additions and 20 deletions

View File

@@ -27,7 +27,7 @@ export type Appearance = "accent" | "filled" | "outlined" | "plain";
* @csspart spinner - The spinner that shows when the button is in the loading state.
*
* @cssprop --ha-button-height - The height of the button.
* @cssprop --ha-button-border-radius - The border radius of the button. defaults to `var(--border-radius-pill)`.
* @cssprop --ha-button-border-radius - The border radius of the button. defaults to `var(--ha-border-radius-pill)`.
*
* @attr {("small"|"medium")} size - Sets the button size.
* @attr {("brand"|"neutral"|"danger"|"warning"|"success")} variant - Sets the button color variant. "primary" is default.
@@ -57,7 +57,7 @@ export class HaButton extends Button {
--wa-font-weight-action: var(--ha-font-weight-medium);
--wa-form-control-border-radius: var(
--ha-button-border-radius,
var(--border-radius-pill)
var(--ha-border-radius-pill)
);
--wa-form-control-height: var(