From 3cf7ceebfb9e9f4388448ca0c3512ba63df53ea1 Mon Sep 17 00:00:00 2001 From: rex Date: Mon, 25 May 2020 14:41:03 +0800 Subject: [PATCH] fix(tag): fix wrong css variable name (#3191) fix #3185 --- packages/common/style/var.less | 2 +- packages/tag/index.less | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/common/style/var.less b/packages/common/style/var.less index 093dd9d4..88655283 100644 --- a/packages/common/style/var.less +++ b/packages/common/style/var.less @@ -506,7 +506,7 @@ @tag-text-color: @white; @tag-border-radius: 0.2em; @tag-round-border-radius: @border-radius-max; -@tag-dander-color: @red; +@tag-danger-color: @red; @tag-primary-color: @blue; @tag-success-color: @green; @tag-warning-color: @orange; diff --git a/packages/tag/index.less b/packages/tag/index.less index fb4093a9..a26b2c68 100644 --- a/packages/tag/index.less +++ b/packages/tag/index.less @@ -24,10 +24,10 @@ } &--danger { - .theme(background-color, '@tag-dander-color'); + .theme(background-color, '@tag-danger-color'); &.van-tag--plain { - .theme(color, '@tag-dander-color'); + .theme(color, '@tag-danger-color'); } }