From 8d55e737c670f73bf5bf3ab8ac3db26bf97370bf Mon Sep 17 00:00:00 2001 From: neverland Date: Thu, 17 Oct 2019 19:31:50 +0800 Subject: [PATCH] fix(Tag): incorrect round radius (#4762) --- src/slider/index.less | 2 +- src/style/var.less | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/slider/index.less b/src/slider/index.less index 026502176..ae0c6cfdc 100644 --- a/src/slider/index.less +++ b/src/slider/index.less @@ -3,7 +3,7 @@ .van-slider { position: relative; background-color: @slider-inactive-background-color; - border-radius: 999px; + border-radius: @border-radius-max; // use pseudo element to expand click area &::before { diff --git a/src/style/var.less b/src/style/var.less index 1f88f6b38..75cac5d91 100644 --- a/src/style/var.less +++ b/src/style/var.less @@ -48,6 +48,7 @@ @border-width-base: 1px; @border-radius-sm: 2px; @border-radius-md: 4px; +@border-radius-max: 999px; // ActionSheet @action-sheet-max-height: 90%; @@ -120,7 +121,7 @@ @button-warning-border-color: @orange; @button-border-width: @border-width-base; @button-border-radius: @border-radius-sm; -@button-round-border-radius: 10em; +@button-round-border-radius: @border-radius-max; @button-plain-background-color: @white; @button-disabled-opacity: @disabled-opacity; @@ -649,7 +650,7 @@ @tag-large-font-size: @font-size-md; @tag-text-color: @white; @tag-border-radius: .2em; -@tag-round-border-radius: .8em; +@tag-round-border-radius: @border-radius-max; @tag-dander-color: @red; @tag-primary-color: @blue; @tag-success-color: @green;