Skip to content

Commit aed5aaf

Browse files
authored
refactor: update overlay styles to reset native popover browser defaults (#9739)
1 parent 616cb84 commit aed5aaf

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ export const overlayStyles = css`
1919
inset: 8px;
2020
bottom: var(--vaadin-overlay-viewport-bottom);
2121
22+
/* Override native [popover] user agent styles */
23+
width: auto;
24+
height: auto;
25+
border: none;
26+
padding: 0;
27+
background-color: transparent;
28+
overflow: visible;
29+
2230
/* Use flexbox alignment for the overlay part. */
2331
display: flex;
2432
flex-direction: column; /* makes dropdowns sizing easier */

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ export const overlayStyles = css`
1818
inset: 0;
1919
bottom: var(--vaadin-overlay-viewport-bottom);
2020
21+
/* Override native [popover] user agent styles */
22+
width: auto;
23+
height: auto;
24+
border: none;
25+
padding: 0;
26+
background-color: transparent;
27+
overflow: visible;
28+
2129
/* Use flexbox alignment for the overlay part. */
2230
display: flex;
2331
flex-direction: column; /* makes dropdowns sizing easier */

0 commit comments

Comments
 (0)