Skip to content

Commit

Permalink
Add theme variable for text in heading badge, fix font family
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya committed Oct 31, 2024
1 parent eb8d233 commit fd97f9b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/components/ha-heading-badge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export class HaBadge extends LitElement {
static get styles(): CSSResultGroup {
return css`
:host {
color: var(--secondary-text-color);
}
[role="button"] {
cursor: pointer;
Expand All @@ -36,11 +35,10 @@ export class HaBadge extends LitElement {
white-space: nowrap;
align-items: center;
gap: 3px;
font-family: Roboto;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 20px;
color: var(--ha-heading-badge-text-color, var(--secondary-text-color));
font-size: var(--ha-heading-badge-font-size, 14px);
font-weight: var(--ha-heading-badge-font-weight, 400);
line-height: var(--ha-heading-badge-line-height, 20px);
letter-spacing: 0.1px;
--mdc-icon-size: 14px;
}
Expand Down

0 comments on commit fd97f9b

Please sign in to comment.