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] Allow to disable gutter/spacing

See original GitHub issue

Accordion Spacing - make the Accordion API more friendly with respect to spacing

  • [ x] I have searched the issues of this repository and believe that this is not a duplicate.

Summary 💡

const MyAccordion = () => {
  const classes = useStyles()
  
  return (
    <Accordion spacing={1}>
      // ...
    </Accordion>

Examples 🌈

😭😢😭😿

Motivation 🔦

I need the Accordion without so much spacing.

I provided the <Accordion classes={{root: classes.accordionRoot, expanded: classes.accordionExpanded}}> etc all down the line and, it started to work while I had to use the !important flag on the accordionRoot.margin, as I am now vexed by the built-in expander icon’s coming along with even more deeply embedded style rule MuiAccordionSummary-expandIcon.Mui-expanded, I want to roll my own accordion instead although it wouldn’t have the transitions, which are nice.

Ideally I could just turn a knob based on the theme that dials spacing from 0 to 8 or whatever…

Thank you for reading.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
TimonPllkrncommented, Jan 21, 2021

I’ve started to work on this 👍

1reaction
TimonPllkrncommented, Dec 15, 2021

Glad to have you start the work prior, can i know if we have any prop ready by now?

The prop disableGutters was released with version 5.0.0-alpha.24 and is available since then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Accordion] Allow to disable gutter/spacing #24492 - GitHub
Accordion Spacing - make the Accordion API more friendly with respect to spacing [ x] I have searched the issues of this repository...
Read more >
Disabling collapse or expand in accordion of material-ui
For click of two icons, I don't want accordion to expand or collapse. Is this anyway related? reactjs · material-ui · Share.
Read more >
Material ui accordion. - Built custom components for UX ...
The accordion component allows the user to show and hide sections of related ... [Accordion] Allow to disaable gutter/spacing [Accordion] Allow to disable...
Read more >
packages/material-ui/src/AccordionSummary · v5.0.0-alpha.26
Name Last commit Last update AccordionSummary.d.ts Allow to disable gutter/spacing (#24532) 1 year ago AccordionSummary.js Allow to disable gutter/spacing (#24532) 1 year ago accordionSummaryClasses.d.ts Simplify xxxClasses...
Read more >
Accordion · Bootstrap v5.0
This is the first item's accordion body. It is shown by default, until the collapse plugin adds the appropriate classes that we use...
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