Skip to content

Commit

Permalink
fix(module:tabs): fix clickable area of tab-link (#5708)
Browse files Browse the repository at this point in the history
close #5696
  • Loading branch information
hsuanxyz authored Sep 7, 2020
1 parent b018887 commit 57962e1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 13 additions & 0 deletions components/tabs/style/patch.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
@import './index';

a[nz-tab-link] {
position: relative;
&::before {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: transparent;
content: '';
}
}

nz-tabset,
nz-tab-nav-operation,
nz-tabs-nav {
Expand Down
1 change: 0 additions & 1 deletion components/tabs/tabset.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,6 @@ export class NzTabSetComponent implements OnInit, AfterContentChecked, OnDestroy

return tabs.findIndex(tab => {
const c = tab.linkDirective;
console.log(c);
return c ? isActive(c.routerLink) || isActive(c.routerLinkWithHref) : false;
});
}
Expand Down

0 comments on commit 57962e1

Please sign in to comment.