Skip to content

Refactor FormLayout to use css grid instead of FlexBox #4583

@rolfsmeds

Description

@rolfsmeds

Describe your motivation

There are several issues caused by the way the CSS FlexBox model treats the implicit width of a flexbox container. Detailed description here: vaadin/flow-components#2201 (comment)

In addition to issues caused directly by this, FlexBox is also indirectly a partial cause for the following issues:

Additionally, the following might be easier to solve with a different approach:

Describe the solution you'd like

Refactor FormLayout to use css grid instead of FlexBox.

A proof-of-concept implementation can be found here:
https://github.com/vaadin/web-components/blob/refactor/formlayout-css-grid/packages/form-layout/src/vaadin-form-layout.js
https://github.com/vaadin/web-components/blob/refactor/formlayout-css-grid/packages/form-layout/src/vaadin-form-item.js

Describe alternatives you've considered

I've been unable to find a solution as long as the component's layouting is based on FlexBox.

Additional context

No response

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