Skip to content

[form-layout] Item label should not define a top margin #1121

@heruan

Description

@heruan

Labels of form items set a margin-top: var(--lumo-space-m) on themselves. Items should not care about that, since they don't know what might be around them. I understand this is intended to create a gap between items, but then the first item in the form will have a useless top margin.

In my opinion, the layout element should care about spacing its own items, not the items themselves.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions