[Accordion] Remove display:flex from AccordionDetails
See original GitHub issue- I have searched the issues of this repository and believe that this is not a duplicate.
Summary 💡
For component packages/material-ui/src/AccordionDetails/AccordionDetails.js
. https://github.com/mui-org/material-ui/blob/next/packages/material-ui/src/AccordionDetails/AccordionDetails.js#L9
I don’t see any reason of setting a display: flex
onto the root div
. The display: block
style (on top of the fact that it does not require explicit setting) might even be preferred.
Unfortunately this is a breaking change 😕.
Examples 🌈
Motivation 🔦
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:18 (17 by maintainers)
Top Results From Across the Web
[Accordion] Remove display:flex from AccordionDetails #22456
I have searched the issues of this repository and believe that this is not a duplicate.
Read more >How can I fix the positioning of this AccordionDetails using ...
For future readers of this answer, AccordionDetails is no longer display: flex by default: github.com/mui/material-ui/pull/22809. So you also ...
Read more >AccordionDetails API - Material UI - MUI
API reference docs for the React AccordionDetails component. Learn about the props, CSS, and other APIs of this exported module.
Read more >@material-ui/core Accordion JavaScript Examples
This page shows JavaScript code examples of @material-ui/core Accordion. ... </AccordionSummary> <AccordionDetails className={classes.root}> <FormControl ...
Read more >React (forked) - StackBlitz
import AccordionDetails from '@mui/material/. AccordionDetails'; ... const AccordionDetails = styled.div`. display : flex;. align-items : center;.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tielushko This is not a change for v4 of material-ui. It’s included in v5.
Using v4.11.4 and the accordion details are still displaying as a flex… Not sure whether this the fix was added or not.
Sandbox with example