Skip to content

Commit 5d820e3

Browse files
authored
Fix color of dialog header and expansion panel (#28087)
1 parent c3cff3b commit 5d820e3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/components/ha-dialog-header.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,15 @@ export class HaDialogHeader extends LitElement {
7575
font-size: var(--ha-font-size-xl);
7676
line-height: var(--ha-line-height-condensed);
7777
font-weight: var(--ha-font-weight-medium);
78+
color: var(--ha-dialog-header-title-color, var(--primary-text-color));
7879
}
7980
.header-subtitle {
8081
font-size: var(--ha-font-size-m);
8182
line-height: var(--ha-line-height-normal);
82-
color: var(--secondary-text-color);
83+
color: var(
84+
--ha-dialog-header-subtitle-color,
85+
var(--secondary-text-color)
86+
);
8387
}
8488
@media all and (min-width: 450px) and (min-height: 500px) {
8589
.header-bar {

src/components/ha-expansion-panel.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ export class HaExpansionPanel extends LitElement {
209209
::slotted([slot="header"]) {
210210
flex: 1;
211211
overflow-wrap: anywhere;
212+
color: var(--primary-text-color);
212213
}
213214
214215
.container {

0 commit comments

Comments
 (0)