Themeable badge icon size and badge font size (#25185)

Co-authored-by: Wendelin <12148533+wendevlin@users.noreply.github.com>
This commit is contained in:
emufan 2025-04-28 16:20:05 +02:00 committed by GitHub
parent 66dbafb5f5
commit 92521d4565
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,7 +103,7 @@ export class HaBadge extends LitElement {
color: var(--secondary-text-color);
}
.content {
font-size: 12px;
font-size: var(--ha-font-size-badge, var(--ha-font-size-s));
font-style: normal;
font-weight: 500;
line-height: 16px;
@ -111,7 +111,7 @@ export class HaBadge extends LitElement {
color: var(--primary-text-color);
}
::slotted([slot="icon"]) {
--mdc-icon-size: 18px;
--mdc-icon-size: var(--ha-icon-size-badge, 18px);
color: var(--badge-color);
line-height: 0;
margin-left: -4px;