From b606527f7d998312b6407d3f6325bdf986969fd3 Mon Sep 17 00:00:00 2001 From: brian Date: Fri, 14 Apr 2023 19:51:53 +0800 Subject: [PATCH] Refactor/link (#1272) * link Mobile Component * create link doc * fix: lint fix * fix: link hover style --- style/mobile/components/link/v2/_index.less | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/style/mobile/components/link/v2/_index.less b/style/mobile/components/link/v2/_index.less index 382f78247e..832cb727cd 100644 --- a/style/mobile/components/link/v2/_index.less +++ b/style/mobile/components/link/v2/_index.less @@ -41,11 +41,13 @@ color: @@disabledColor; } - &.@{link}--hover { - color: @@activeColor; + &:active { + &.@{link}--hover { + color: @@activeColor; - &.@{link}--underline::after { - border-color: @@activeColor; + &.@{link}--underline::after { + border-color: @@activeColor; + } } } } @@ -66,6 +68,7 @@ display: flex; align-items: center; box-sizing: content-box; + text-decoration: none; &--underline::after { content: "";