mantine-v7 icon indicating copy to clipboard operation
mantine-v7 copied to clipboard

Styles between identical components can affect each other.

Open nawbc opened this issue 2 years ago • 2 comments

What package has an issue

@mantine/core

Describe the bug

AppShell navbar sets the different width, but gets the same width.

Example:

 <AppShell
    layout="alt"
    header={{ height: 60 }}
    navbar={{
      width: 300,
      breakpoint: 'sm',
    }}
  >
    <AppShell.Main>
      <AppShell
        navbar={{
          width: 200,
          breakpoint: 'sm',
        }}
      >
      </AppShell>
    </AppShell.Main>
  </AppShell>

Result:

image

What version of @mantine/* page do you have in package.json? (Note that all @mantine/* packages must have the same version in order to work correctly)

version: 7.0.0-beta.2 bundler: Vite

nawbc avatar Aug 28 '23 07:08 nawbc

Nested AppShells are not supported

rtivital avatar Aug 28 '23 10:08 rtivital

Nested AppShells are not supported

I think using CSS variables to modify component styles may also lead to similar issues.

nawbc avatar Aug 28 '23 13:08 nawbc