Move vaadin-message elements into a slot #4289
Labels
refactor
Internal improvement
requires new major
This would be a breaking change
v24
To be done in V24
vaadin-messages
Describe your motivation
The
vaadin-message elements
in thevaadin-message-list
component are currently in the component's shadow dom. This presents a challenge for::part()
based styling:vaadin-message
need to be propagated tovaadin-message-list
using exportparts. That's rather much.vaadin-message
instances cannot be exposed to the::part()
selector, making it impossible to style messages based on theme using::part()
.Describe the solution you'd like
Move the
vaadin-message
elements into a slot invaadin-message-list
.Describe alternatives you've considered
I suppose theme names applied to messages could be reflected as part names.
Additional context
No response
The text was updated successfully, but these errors were encountered: