From 41d522584844ea0ffe19c61a3ae330a53eb374fa Mon Sep 17 00:00:00 2001 From: Lincoln <13809582311@163.com> Date: Thu, 30 Dec 2021 11:37:06 +0800 Subject: [PATCH] fix(comp:typography): fix typography disabled style (#687) fix #567 --- .../components/typography/style/index.less | 55 +++++++++++-------- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/packages/components/typography/style/index.less b/packages/components/typography/style/index.less index 39f92f297..e68d5a14d 100644 --- a/packages/components/typography/style/index.less +++ b/packages/components/typography/style/index.less @@ -5,29 +5,6 @@ overflow-wrap: break-word; color: @typography-default-color; - // text - - &-secondary { - color: @typography-color-secondary; - } - - &-success { - color: @typography-success; - } - - &-warning { - color: @typography-warning; - } - - &-error { - color: @typography-error; - } - - &-disabled { - color: @typography-disabled-color; - cursor: not-allowed; - } - // tag mark { @@ -121,6 +98,38 @@ } } + // text + + &-secondary { + color: @typography-color-secondary; + } + + &-success { + color: @typography-success; + } + + &-warning { + color: @typography-warning; + } + + &-error { + color: @typography-error; + } + + &-disabled { + color: @typography-disabled-color; + cursor: not-allowed; + + > * { + pointer-events: none; + } + + > a { + color: @typography-disabled-color; + cursor: not-allowed; + } + } + // list ul,