From 1afabd46723b15cd01ac183fe2d560a6912bf99e Mon Sep 17 00:00:00 2001 From: Hsuan Lee Date: Thu, 10 Sep 2020 17:37:50 +0800 Subject: [PATCH] fix(module:tabs): tab-link cannot be disabled (#5759) close #5549, close #5543 --- components/button/button.spec.ts | 4 +++- components/tabs/style/patch.less | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/components/button/button.spec.ts b/components/button/button.spec.ts index 792be2ca6af..f68f3477439 100644 --- a/components/button/button.spec.ts +++ b/components/button/button.spec.ts @@ -241,7 +241,9 @@ export class TestButtonIconOnlyComponent {} export class TestButtonIconOnlyLoadingComponent {} @Component({ - template: ` anchor ` + template: ` + anchor + ` }) export class TestAnchorButtonComponent { disabled = false; diff --git a/components/tabs/style/patch.less b/components/tabs/style/patch.less index a34a439772e..d87bf3f87f0 100644 --- a/components/tabs/style/patch.less +++ b/components/tabs/style/patch.less @@ -60,8 +60,20 @@ nz-tabs-nav { color: @disabled-color; background: transparent; cursor: not-allowed; + + a { + pointer-events: none; + color: @disabled-color; + } } } } } } + +.@{tab-prefix-cls} { + &-tab-disabled a { + pointer-events: none; + color: @disabled-color; + } +} \ No newline at end of file