Skip to content

Commit

Permalink
Add header text align theme variable to stack cards (#20563)
Browse files Browse the repository at this point in the history
* Update hui-stack-card.ts

Added variable

* Update hui-stack-card.ts

Updated the variable, so that it would not be in line with the rest of the variables. In this way, the variable only works for hui-stack titles.

* Update hui-stack-card.ts

Co-authored-by: Bram Kragten <[email protected]>

---------

Co-authored-by: Bram Kragten <[email protected]>
  • Loading branch information
dhoeben and bramkragten authored May 6, 2024
1 parent ff9f331 commit 11f2bef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/panels/lovelace/cards/hui-stack-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export abstract class HuiStackCard<T extends StackCardConfig = StackCardConfig>
return css`
.card-header {
color: var(--ha-card-header-color, var(--primary-text-color));
text-align: var(--ha-stack-title-text-align, start);
font-family: var(--ha-card-header-font-family, inherit);
font-size: var(--ha-card-header-font-size, 24px);
font-weight: normal;
Expand Down

0 comments on commit 11f2bef

Please sign in to comment.