From 14f280f603d1ecaa524260c86c095b42a2eabfdf Mon Sep 17 00:00:00 2001 From: He Linming Date: Mon, 26 Aug 2019 22:57:38 +0800 Subject: [PATCH] feat: Configurable heading font-weight (#18442) (#18456) --- components/style/themes/default.less | 4 ++++ components/typography/style/index.less | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/components/style/themes/default.less b/components/style/themes/default.less index a1c1a21fca..692d065793 100644 --- a/components/style/themes/default.less +++ b/components/style/themes/default.less @@ -670,3 +670,7 @@ @timeline-dot-border-width: 2px; @timeline-dot-color: @primary-color; @timeline-dot-bg: @component-background; + +// Typography +// --- +@typography-title-font-weight: 600; diff --git a/components/typography/style/index.less b/components/typography/style/index.less index 47c691b9b9..89c01139b9 100644 --- a/components/typography/style/index.less +++ b/components/typography/style/index.less @@ -12,7 +12,7 @@ .typography-title(@fontSize; @lineHeight) { margin-bottom: 0.5em; color: @heading-color; - font-weight: 600; + font-weight: @typography-title-font-weight; font-size: @fontSize; line-height: @lineHeight; }