Skip to content

Commit

Permalink
fix(module:dropdown): fix dropdown style conflict with material style (
Browse files Browse the repository at this point in the history
  • Loading branch information
vthinkxie authored and Ricbet committed Apr 9, 2020
1 parent 486ea8b commit c901331
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/core/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,13 @@
}
}

/** https://github.com/NG-ZORRO/ng-zorro-antd/issues/3241 **/
.cdk-overlay-pane{
&.nz-dropdown-panel {
display: block;
}
}

// hack tree css
.ant-tree {
&.ant-tree-show-line {
Expand Down
1 change: 1 addition & 0 deletions components/dropdown/nz-dropdown.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export class NzDropdownService {
this.overlayRef = this.overlay.create(
new OverlayConfig({
scrollStrategy: this.overlay.scrollStrategies.close(),
panelClass: 'nz-dropdown-panel',
positionStrategy: this.overlay
.position()
.flexibleConnectedTo({
Expand Down

0 comments on commit c901331

Please sign in to comment.