Skip to content

feat: add support for slotted header and footer content#10624

Merged
web-padawan merged 11 commits intomainfrom
feat/dialog-slotted-header-footer
Feb 4, 2026
Merged

feat: add support for slotted header and footer content#10624
web-padawan merged 11 commits intomainfrom
feat/dialog-slotted-header-footer

Conversation

@ugur-vaadin
Copy link
Copy Markdown
Contributor

@ugur-vaadin ugur-vaadin commented Dec 11, 2025

Description

Adds support for slotted header and footer content, in addition to using renderers.

Fixes #10339

Type of change

  • Feature

@ugur-vaadin ugur-vaadin marked this pull request as ready for review December 16, 2025 08:06
@sonarqubecloud
Copy link
Copy Markdown

ugur-vaadin and others added 5 commits February 3, 2026 10:36
Implements dynamic slot detection for header-content and footer slots,
enabling users to pass content directly via slots instead of only through
renderers.

Key changes:
- Add SlotObserver to monitor header-content and footer slots
- Dynamically set has-header/has-footer attributes based on both
  renderers AND slotted content presence
- Smart content detection that ignores empty elements and
  renderer-created containers
- Support for mixed usage (renderers + slots simultaneously)

Tests:
- Add 17 new unit tests for slotted content scenarios
- Add 8 visual regression tests
- All existing tests continue to pass (196 total)

Fixes #10339

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@sissbruecker sissbruecker force-pushed the feat/dialog-slotted-header-footer branch from bad6874 to bfea625 Compare February 3, 2026 10:15
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Feb 4, 2026

@web-padawan web-padawan merged commit c3a8661 into main Feb 4, 2026
10 checks passed
@web-padawan web-padawan deleted the feat/dialog-slotted-header-footer branch February 4, 2026 11:58
@vaadin-bot
Copy link
Copy Markdown
Collaborator

This ticket/PR has been released with Vaadin 25.1.0-alpha8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[dialog] Allow passing content to header / footer slots, set has-header and has-footer

4 participants