Skip to content

Commit

Permalink
fix(module:tabs): fix dropdown style (#5659)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsuanxyz committed Aug 14, 2020
1 parent b946742 commit 8415a70
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
49 changes: 49 additions & 0 deletions components/tabs/style/patch.less
@@ -1,5 +1,54 @@
@import './index';

nz-tabset,
nz-tab-nav-operation,
nz-tabs-nav {
display: block;
}


.nz-tabs-dropdown.ant-dropdown {

.ant-dropdown-menu {
max-height: 200px;
margin: 0;
padding: @dropdown-edge-child-vertical-padding 0;
overflow-x: hidden;
overflow-y: auto;
text-align: left;
list-style-type: none;
background-color: @dropdown-menu-bg;
background-clip: padding-box;
border-radius: @border-radius-base;
outline: none;
box-shadow: @box-shadow-base;

&-item {
min-width: 120px;
margin: 0;
padding: @dropdown-vertical-padding @control-padding-horizontal;
overflow: hidden;
color: @text-color;
font-weight: normal;
font-size: @dropdown-font-size;
line-height: @dropdown-line-height;
white-space: nowrap;
text-overflow: ellipsis;
cursor: pointer;
transition: all 0.3s;

&:hover {
background: @item-hover-bg;
}

&-disabled {
&,
&:hover {
color: @disabled-color;
background: transparent;
cursor: not-allowed;
}
}
}
}
}
2 changes: 1 addition & 1 deletion components/tabs/tab-nav-operation.component.ts
Expand Up @@ -33,7 +33,7 @@ import { NzTabNavItemDirective } from './tab-nav-item.directive';
type="button"
tabindex="-1"
aria-hidden="true"
nzOverlayClassName="ant-tabs-dropdown-menu"
nzOverlayClassName="nz-tabs-dropdown"
#dropdownTrigger="nzDropdown"
[nzDropdownMenu]="menu"
[nzOverlayStyle]="{ minWidth: '46px' }"
Expand Down

0 comments on commit 8415a70

Please sign in to comment.