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

[details] Make [part=summary-content] take remaining width of the container #497

Closed
DiegoCardoso opened this issue Dec 15, 2020 · 1 comment · Fixed by #7529
Closed

[details] Make [part=summary-content] take remaining width of the container #497

DiegoCardoso opened this issue Dec 15, 2020 · 1 comment · Fixed by #7529
Assignees
Labels
bug Something isn't working good first issue Good for newcomers vaadin-details

Comments

@DiegoCardoso
Copy link
Contributor

[part=summary] is a flexbox div with two children: [part=toggle] and [part=summary-content], both span elements. The slot summary is placed within [part=summary-content].

I, as a user, want to be able to place any element on the slot summary and use the full width available.

Actual behavior

Since there's no style defined for [part=summary-content], it won't expand:

border added to show parent boundaries
image

Expected behavior

[part=summary-content] should expand and allow its children to use the size relatively to their parent.

border added to show parent boundaries
image

@jcgueriaud1
Copy link
Contributor

I've added this:

:host [part="summary-content"] {
    flex-grow: 1;
}

To allow the content to grow.

@vaadin-bot vaadin-bot transferred this issue from vaadin/vaadin-details May 19, 2021
@vaadin-bot vaadin-bot added bug Something isn't working vaadin-details labels May 19, 2021
@web-padawan web-padawan changed the title Make [part=summary-content] take remaining width of the container [details] Make [part=summary-content] take remaining width of the container May 20, 2021
@web-padawan web-padawan added the good first issue Good for newcomers label Oct 29, 2021
@FrediWa FrediWa self-assigned this Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers vaadin-details
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants