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

[card] Setting fixed height on card with overflowing content causes it to break #8479

Open
web-padawan opened this issue Jan 10, 2025 · 0 comments
Labels
bug Something isn't working vaadin-card

Comments

@web-padawan
Copy link
Member

Description

Originally reported at #8233 (review)

Setting fixed height on the vaadin-card with overflowing content causes it to break:

Screenshot 2024-12-19 at 15 03 55

While setting overflow: auto helps with content overflow, the footer would still end up behind the content.

Expected outcome

Expected the content to not overflow.

Minimal reproducible example

<vaadin-card style="max-height: 150px; max-width: 200px;">
  <div>Lapland is the northern-most region of Finland and an active outdoor destination.</div>
  <vaadin-button slot="footer" tabindex="0" role="button">Book Vacation</vaadin-button>
</vaadin-card>

Steps to reproduce

  1. Add the snippet to the HTML page
  2. Ensure footer slot content is present
  3. Observe the overflow

Environment

Vaadin version(s): 24.7

Browsers

Issue is not browser related

@web-padawan web-padawan added bug Something isn't working vaadin-card labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working vaadin-card
Projects
None yet
Development

No branches or pull requests

1 participant