From 10810e2b45374558737ba15f86e6ad91e98cc24f Mon Sep 17 00:00:00 2001 From: rex Date: Sat, 18 Apr 2020 22:59:30 +0800 Subject: [PATCH] feat(GoodsActionButton): add new css variable goods-action-line-height (#3037) fix #3032 --- packages/common/style/var.less | 1 + packages/goods-action-button/index.less | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/common/style/var.less b/packages/common/style/var.less index c0659797..a1786a65 100644 --- a/packages/common/style/var.less +++ b/packages/common/style/var.less @@ -251,6 +251,7 @@ @goods-action-icon-font-size: @font-size-xs; @goods-action-icon-text-color: @gray-7; @goods-action-button-height: 40px; +@goods-action-button-line-height: @button-line-height; @goods-action-button-border-radius: @goods-action-button-height / 2; @goods-action-button-warning-color: @gradient-orange; @goods-action-button-danger-color: @gradient-red; diff --git a/packages/goods-action-button/index.less b/packages/goods-action-button/index.less index a71d4b60..e1939e39 100644 --- a/packages/goods-action-button/index.less +++ b/packages/goods-action-button/index.less @@ -12,7 +12,7 @@ ); .theme(--button-danger-background-color, '@goods-action-button-danger-color'); .theme(--button-default-height, '@goods-action-button-height'); - .theme(--button-line-height, '@goods-action-button-height'); + .theme(--button-line-height, '@goods-action-button-line-height'); .theme(--button-plain-background-color, '@goods-action-button-plain-color'); display: block;