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

[Container] Container in Container broken #606

Open
jd-carroll opened this issue Oct 4, 2024 · 1 comment
Open

[Container] Container in Container broken #606

jd-carroll opened this issue Oct 4, 2024 · 1 comment

Comments

@jd-carroll
Copy link

The following code snippet does not work:

<Container size="3">
  <Container size="2">
    My constrained content
  </Container>
</Container>

The result is that the parent container's size overrides the child:

Duplicate #591

@jd-carroll
Copy link
Author

I know a lot of care has been made to ensure the specificity is (0, 1, 0) everywhere, but is this an exception to that?

If it is not, and I suspect not, then I think it would make sense to move the sizing class from rt-Container to rt-ContainerInner. This is the only place in the code base where rt-r-size is used in a "compound" (?) selector statement.

Every other use looks like:

.rt-BaseTabList {
  &:where(.rt-r-size-1) {
    font-size: var(--font-size-1);
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant