question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:18 (17 by maintainers)

github_iconTop GitHub Comments

2reactions
crorafcommented, Aug 14, 2021

@tielushko This is not a change for v4 of material-ui. It’s included in v5.

2reactions
tielushkocommented, Aug 12, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found