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 47f0aef commit e30a9be
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 e30a9be

Please sign in to comment.