Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slot-based horizontal alignment in HorizontalLayout #7125

Open
rolfsmeds opened this issue Feb 12, 2024 · 0 comments
Open

Slot-based horizontal alignment in HorizontalLayout #7125

rolfsmeds opened this issue Feb 12, 2024 · 0 comments
Labels

Comments

@rolfsmeds
Copy link
Contributor

Describe your motivation

Creating horizontal layouts where some elements are aligned to the left, some to the center and some to the right requires a decent amount of boilerplate and can be fairly challenging to figure out, especially for Flow developers unused to html/css based layouting. Using HorizontalLayout this currently requires either creating sub-layouts for each alignment, or setting margin:auto on the correct elements.

Describe the solution you'd like

An intuitive model for horizontally aligning elements in a HorizontalLayout, based on separate slots for left, center and right aligned elements, based on two new slots in HorizontalLayout: center and end.

PoC: https://codepen.io/rsmeds/pen/dygYExp
Acceptance Criteria: vaadin/platform#5038

Describe alternatives you've considered

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant