Skip to content

[Stack] Allows clearing of margin-left property of child items. #42633

Closed
@SageJustus

Description

@SageJustus

Summary

Allows clearing of margin-left of child items.

Stack adds margin-left to its children, which does not work as expected when line wrapping is allowed.

Examples

https://codesandbox.io/p/sandbox/mui-1-hv4ls6?file=%2Fsrc%2FDemo.tsx

Motivation

Fix alignment issues in wrapping situations.

Search keywords: stack margin

Metadata

Metadata

Assignees

Labels

component: StackThe React component.support: questionCommunity support but can be turned into an improvement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions