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 Apr 17, 2019
1 parent 031ba8f commit 07c61c0
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 07c61c0

Please sign in to comment.