Skip to content

Commit 15e8b5a

Browse files
committed
fix: clip dialog header, content and footer to border radius
1 parent 61f99b1 commit 15e8b5a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

packages/dialog/src/styles/vaadin-dialog-overlay-base-styles.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,19 @@ const dialogResizableOverlay = css`
134134
min-height: 0;
135135
overflow: auto;
136136
overscroll-behavior: contain;
137+
clip-path: border-box;
138+
}
139+
140+
[part='header'],
141+
:host(:not([has-header])) [part='content'] {
142+
border-top-left-radius: inherit;
143+
border-top-right-radius: inherit;
144+
}
145+
146+
[part='footer'],
147+
:host(:not([has-footer])) [part='content'] {
148+
border-bottom-left-radius: inherit;
149+
border-bottom-right-radius: inherit;
137150
}
138151
139152
.resizer-container {
@@ -142,6 +155,12 @@ const dialogResizableOverlay = css`
142155
flex-grow: 1;
143156
border-radius: inherit;
144157
max-width: 100%;
158+
border-radius: calc(
159+
var(--vaadin-dialog-border-radius, var(--vaadin-radius-l)) - var(
160+
--vaadin-dialog-border-width,
161+
var(--vaadin-overlay-border-width, 1px)
162+
)
163+
);
145164
}
146165
147166
:host(:not([resizable])) .resizer {

0 commit comments

Comments
 (0)