Skip to content

[data grid] Demo containers #13981

@zanivan

Description

@zanivan

Related page

https://mui.com/x/react-data-grid/

Kind of issue

Broken demo

Issue description

Almost all DataGrid demos have their top corners cropped—likely due to the demo container border-radius being larger than DataGrid's.

Screenshot 2024-07-25 at 10 06 12 Screenshot 2024-07-25 at 10 06 15

I think the demos are using the "bg": "inline" variant for demo container, and in addition to the cropped corners, we also have these two borders that feels off:

Screenshot 2024-07-25 at 10 06 21

Suggestion

Instead of using the "bg": "inline" variant, start using the "bg": "outlined" (this one), with a padding from the DataGrid and demo container

Search keywords: demo datagrid container border

Metadata

Metadata

Assignees

No one assigned

    Labels

    designThis is about UI or UX design, please involve a designer.docsImprovements or additions to the documentation.scope: data gridChanges related to the data grid.type: bugIt doesn't behave as expected.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions