Skip to content

Commit

Permalink
Move attribute pre styles to ha-attribute-value component (#18649)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmcrty authored Nov 16, 2023
1 parent e94461f commit 8d37c56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
5 changes: 4 additions & 1 deletion src/components/ha-attribute-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,11 @@ class HaAttributeValue extends LitElement {

static styles = css`
pre {
font-family: inherit;
font-size: inherit;
margin: 0;
white-space: pre-wrap;
overflow-wrap: break-word;
white-space: pre-line;
}
`;
}
Expand Down
7 changes: 0 additions & 7 deletions src/components/ha-attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,6 @@ class HaAttributes extends LitElement {
text-align: center;
margin-top: 16px;
}
pre {
font-family: inherit;
font-size: inherit;
margin: 0px;
overflow-wrap: break-word;
white-space: pre-line;
}
hr {
border-color: var(--divider-color);
border-bottom: none;
Expand Down

0 comments on commit 8d37c56

Please sign in to comment.