Refactor ha-form margins (#14176)

This commit is contained in:
Paul Bottein 2022-10-25 12:29:59 +02:00 committed by GitHub
parent de008f65a3
commit cb8e602340
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View File

@ -82,7 +82,6 @@ export class HaFormGrid extends LitElement implements HaFormElement {
} }
:host > ha-form { :host > ha-form {
display: block; display: block;
margin-bottom: 24px;
} }
`; `;
} }

View File

@ -155,14 +155,10 @@ export class HaForm extends LitElement implements HaFormElement {
static get styles(): CSSResultGroup { static get styles(): CSSResultGroup {
return css` return css`
.root {
margin-bottom: -24px;
overflow: clip visible;
}
.root > * { .root > * {
display: block; display: block;
} }
.root > *:not([own-margin]) { .root > *:not([own-margin]):not(:last-child) {
margin-bottom: 24px; margin-bottom: 24px;
} }
ha-alert[own-margin] { ha-alert[own-margin] {