From 94768c56f10e8fdea2deb7f23420ac4d01a9e706 Mon Sep 17 00:00:00 2001 From: danranvm Date: Mon, 14 Nov 2022 17:45:10 +0800 Subject: [PATCH] fix(comp:button): text and link mode remove padding and bg color --- packages/components/button/style/index.less | 7 ++++++- packages/components/pagination/style/index.less | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/components/button/style/index.less b/packages/components/button/style/index.less index 53ed5a74a..96dbb4878 100644 --- a/packages/components/button/style/index.less +++ b/packages/components/button/style/index.less @@ -117,6 +117,7 @@ &-link { background-color: transparent; border-color: transparent; + padding: 0; &:focus, &:hover { @@ -128,6 +129,10 @@ } } + &-link { + color: @button-primary-background-color; + } + &-danger { color: @button-danger-color; border-color: @button-danger-color; @@ -256,7 +261,7 @@ &:hover, &:focus, &:active { - background-color: @button-background-color; + background-color: transparent; border-color: transparent; } } diff --git a/packages/components/pagination/style/index.less b/packages/components/pagination/style/index.less index fef61d70c..cd4131a91 100644 --- a/packages/components/pagination/style/index.less +++ b/packages/components/pagination/style/index.less @@ -9,7 +9,6 @@ list-style: none; outline: none; user-select: none; - background-color: @pagination-background-color; &-sm { .pagination-size(@pagination-font-size-sm, @pagination-item-padding-sm, @pagination-item-content-size-sm); @@ -74,6 +73,7 @@ &-item { cursor: pointer; + line-height: 1; transition: color var(--ix-transition-duration-fast); &-content {