Skip to content

Commit 1d590cd

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

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

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

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,32 @@ 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 {
140153
display: flex;
141154
flex-direction: column;
142155
flex-grow: 1;
143-
border-radius: inherit;
144156
max-width: 100%;
157+
border-radius: calc(
158+
var(--vaadin-dialog-border-radius, var(--vaadin-radius-l)) - var(
159+
--vaadin-dialog-border-width,
160+
var(--vaadin-overlay-border-width, 1px)
161+
)
162+
);
145163
}
146164
147165
:host(:not([resizable])) .resizer {

0 commit comments

Comments
 (0)