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

Children width in Accordion #2302

Open
shubhnik opened this issue Jul 10, 2024 · 0 comments
Open

Children width in Accordion #2302

shubhnik opened this issue Jul 10, 2024 · 0 comments
Assignees
Labels
P1 Kinda Important

Comments

@shubhnik
Copy link
Contributor

The width of the children for example of TextInput inside an Accordion is not extendable to near 100% width of the accordion. I have tried wrapping the TextInput inside a Box with flex=1 but it didn't help either.

As a workaround I have to wrap Accordion with this component:

styled.div(
  () => `
    div[data-blade-component='collapsible-body'] {
      width: 100%;

      div[data-blade-component='textinput'] {
        flex: 1;
      }
    }
`,
);

Attached a screenshot to better visualise the issue and fixed UI after wrapping with custom component.
lmdsmsdl

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

No branches or pull requests

2 participants