Skip to content

Commit db56714

Browse files
authored
feat: add custom CSS property to control overlay viewport inset (#10108)
1 parent 3681622 commit db56714

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const overlayStyles = css`
1616
1717
/* Default position constraints. Themes can
1818
override this to adjust the gap between the overlay and the viewport. */
19-
inset: 8px;
19+
inset: var(--vaadin-overlay-viewport-inset, 8px);
2020
bottom: var(--vaadin-overlay-viewport-bottom);
2121
2222
/* Override native [popover] user agent styles */

packages/vaadin-lumo-styles/src/mixins/overlay.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
/* CSS API for host */
3939
--vaadin-overlay-viewport-bottom: 0;
4040

41-
inset: var(--lumo-space-m) var(--lumo-space-m) var(--lumo-space-m) var(--lumo-space-m);
41+
inset: var(--vaadin-overlay-viewport-inset, var(--lumo-space-m));
4242
/* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
4343
/* stylelint-disable-next-line */
4444
outline: 0px solid transparent;

0 commit comments

Comments
 (0)