You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: apply content styles on part instead of slotted element (#11458)
## Description
Updates Aura App Layout theme to apply content styles on the content
part instead of slotted content elements:
- Introduce a content part, update style rules to use it
- Update Aura theme to style the content part instead of the slotted
element
- Modify the content offset mechanism so that the offset of the content
from drawer / navbar is applied via padding on the host element
- The previous approach used a padding on the content part, resulting in
the content part stretching below the drawer, which does not give the
correct visual result when applying a background / border on the content
- Using a margin on the content part works as an alternative, however
that makes customizing the margin of the content part more complex for
users, as they would need to write CSS rules that account for the drawer
offset
Fixes#11431
## Type of change
- Refactor
---------
Co-authored-by: Jouni Koivuviita <jouni@vaadin.com>
0 commit comments