Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid2 container is not taking 100% of the width #44556

Closed
shifoc opened this issue Nov 26, 2024 · 1 comment
Closed

Grid2 container is not taking 100% of the width #44556

shifoc opened this issue Nov 26, 2024 · 1 comment
Assignees
Labels
duplicate This issue or pull request already exists

Comments

@shifoc
Copy link

shifoc commented Nov 26, 2024

Steps to reproduce

https://codesandbox.io/embed/tkzhz4?module=/src/Demo.tsx

import * as React from 'react';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import { Accordion, AccordionDetails, AccordionSummary, Typography, Grid2 as Grid, Box} from '@mui/material';

export default function AccordionUsage() {
  return (
    <div>
      <Accordion>
        <AccordionSummary
          expandIcon={<ExpandMoreIcon />}
          aria-controls="panel1-content"
          id="panel1-header"
        >
          <Grid container justifyContent="space-between">
            <Grid size={4}>
              <Typography>part 1</Typography>
            </Grid>
            <Grid size={8}>
              <Typography>part 2</Typography>
            </Grid>
          </Grid>
        </AccordionSummary>
        <AccordionDetails>
          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
          malesuada lacus ex, sit amet blandit leo lobortis eget.
        </AccordionDetails>
      </Accordion>
    </div>
  );
}

Current behavior

No response

Expected behavior

No response

Context

No response

Your environment

No response

Search keywords: Grid2

@shifoc shifoc added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Nov 26, 2024
@shifoc shifoc changed the title Grid2 is not taking 100% of the width Grid2 container is not taking 100% of the width Nov 26, 2024
@sai6855
Copy link
Contributor

sai6855 commented Nov 26, 2024

Duplicate of #44201

@shifoc can you try what's recommended here #44201 (comment)?

@aarongarciah aarongarciah closed this as not planned Won't fix, can't repro, duplicate, stale Nov 26, 2024
@aarongarciah aarongarciah added duplicate This issue or pull request already exists and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Nov 26, 2024
@aarongarciah aarongarciah self-assigned this Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants