From 9504f5b418948ca623b97ffaed0435ea54bd55b2 Mon Sep 17 00:00:00 2001 From: Amumu Date: Sat, 16 May 2020 15:24:13 +0800 Subject: [PATCH] fix: fix loading Button in Badge style (#23691) * fix loading button in badage style * order name * snap * rever demo change * update * update * update * snap * snap --- components/badge/style/index.less | 3 +-- components/style/themes/default.less | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/components/badge/style/index.less b/components/badge/style/index.less index 4a1e2e0c97..1e33c60839 100644 --- a/components/badge/style/index.less +++ b/components/badge/style/index.less @@ -13,7 +13,6 @@ line-height: 1; &-count { - z-index: @zindex-badge; min-width: @badge-height; height: @badge-height; padding: 0 6px; @@ -37,7 +36,6 @@ } &-dot { - z-index: @zindex-badge; width: @badge-dot-size; height: @badge-dot-size; background: @highlight-color; @@ -51,6 +49,7 @@ position: absolute; top: 0; right: 0; + z-index: @zindex-badge; transform: translate(50%, -50%); transform-origin: 100% 0%; } diff --git a/components/style/themes/default.less b/components/style/themes/default.less index 8292fc0811..82337d089f 100644 --- a/components/style/themes/default.less +++ b/components/style/themes/default.less @@ -265,8 +265,8 @@ @layout-trigger-color-light: @text-color; // z-index list, order by `z-index` -@zindex-badge: auto; -@zindex-table-fixed: auto; +@zindex-badge: 1; +@zindex-table-fixed: 1; @zindex-affix: 10; @zindex-back-top: 10; @zindex-picker-panel: 10;