From 1c630fb87b0e49a1459b3ad9204a79ee22b3abc7 Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 29 Oct 2021 16:35:28 +0800 Subject: [PATCH] style: --van-border-color should affect hairline (#9751) --- packages/vant/src/style/mixins/hairline.less | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/vant/src/style/mixins/hairline.less b/packages/vant/src/style/mixins/hairline.less index ead093b03..6bd32176e 100644 --- a/packages/vant/src/style/mixins/hairline.less +++ b/packages/vant/src/style/mixins/hairline.less @@ -7,7 +7,7 @@ pointer-events: none; } -.hairline(@color: @border-color) { +.hairline(@color: var(--van-border-color)) { .hairline-common(); top: -50%; @@ -18,7 +18,7 @@ transform: scale(0.5); } -.hairline-top(@color: @border-color, @left: 0, @right: 0) { +.hairline-top(@color: var(--van-border-color), @left: 0, @right: 0) { .hairline-common(); top: 0; @@ -28,7 +28,7 @@ transform: scaleY(0.5); } -.hairline-bottom(@color: @border-color, @left: 0, @right: 0) { +.hairline-bottom(@color: var(--van-border-color), @left: 0, @right: 0) { .hairline-common(); right: @right;