From f2a8fe92997c71876b7d3630acf5ca592756cdbf Mon Sep 17 00:00:00 2001 From: Graeme Yeates Date: Fri, 28 Apr 2017 13:42:01 -0400 Subject: [PATCH] Add variables for customizing alert text and heading colors --- components/alert/style/index.less | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/alert/style/index.less b/components/alert/style/index.less index 52e7e6ffea..eafd205b41 100644 --- a/components/alert/style/index.less +++ b/components/alert/style/index.less @@ -2,11 +2,14 @@ @alert-prefix-cls: ~"@{ant-prefix}-alert"; +@alert-message-color: @heading-color; +@alert-text-color: @text-color; + .@{alert-prefix-cls} { position: relative; padding: 8px 48px 8px 38px; border-radius: @border-radius-base; - color: @text-color; + color: @alert-text-color; font-size: @font-size-base; line-height: 16px; margin-bottom: 10px; @@ -114,7 +117,7 @@ &-with-description &-message { font-size: @font-size-lg; - color: @heading-color; + color: @alert-message-color; display: block; margin-bottom: 4px; }