Skip to content

Commit 74542a3

Browse files
committed
fix: nz-select display position in safari
1 parent 6997407 commit 74542a3

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/sass/ant.less

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@
1616
font-size: 13px;
1717
}
1818

19+
// NG-ZORRO's global select patch positions dropdowns at `top: 100%`. In a CDK
20+
// overlay Safari resolves that percentage against the pane's content height,
21+
// which leaves an equally tall blank area above the options.
22+
.cdk-overlay-pane > .ant-select-dropdown {
23+
position: static;
24+
top: auto;
25+
left: auto;
26+
margin: 0;
27+
}
28+
1929
.dark-dropdown {
2030
background-color: var(--el-dropdown-bg-color);
2131

0 commit comments

Comments
 (0)