From 65b6807a7e6b8a415b5f228c5d55426cd81a1dfa Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Mon, 30 Nov 2020 22:14:19 +0800 Subject: [PATCH] style(IndexBar): adjust default highlight color to red --- src/index-bar/README.md | 4 ++-- src/index-bar/README.zh-CN.md | 4 ++-- src/style/var.less | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/index-bar/README.md b/src/index-bar/README.md index 8fad5d0fd..85cf45fb0 100644 --- a/src/index-bar/README.md +++ b/src/index-bar/README.md @@ -68,7 +68,7 @@ export default { | z-index | z-index | _number \| string_ | `1` | | sticky | Whether to enable anchor sticky top | _boolean_ | `true` | | sticky-offset-top | Anchor offset top when sticky | _number_ | `0` | -| highlight-color | Index character highlight color | _string_ | `#07c160` | - | +| highlight-color | Index character highlight color | _string_ | `#ee0a24` | - | ### IndexAnchor Props @@ -98,7 +98,7 @@ How to use: [Custom Theme](#/en-US/theme). | @index-bar-sidebar-z-index | `2` | - | | @index-bar-index-font-size | `@font-size-xs` | - | | @index-bar-index-line-height | `@line-height-xs` | - | -| @index-bar-index-active-color | `@green` | - | +| @index-bar-index-active-color | `@red` | - | | @index-anchor-z-index | `1` | - | | @index-anchor-padding | `0 @padding-md` | - | | @index-anchor-text-color | `@text-color` | - | diff --git a/src/index-bar/README.zh-CN.md b/src/index-bar/README.zh-CN.md index 1101d3ff4..b8ed59489 100644 --- a/src/index-bar/README.zh-CN.md +++ b/src/index-bar/README.zh-CN.md @@ -72,7 +72,7 @@ export default { | z-index | z-index 层级 | _number \| string_ | `1` | | sticky | 是否开启锚点自动吸顶 | _boolean_ | `true` | | sticky-offset-top | 锚点自动吸顶时与顶部的距离 | _number_ | `0` | -| highlight-color | 索引字符高亮颜色 | _string_ | `#07c160` | +| highlight-color | 索引字符高亮颜色 | _string_ | `#ee0a24` | ### IndexAnchor Props @@ -102,7 +102,7 @@ export default { | @index-bar-sidebar-z-index | `2` | - | | @index-bar-index-font-size | `@font-size-xs` | - | | @index-bar-index-line-height | `@line-height-xs` | - | -| @index-bar-index-active-color | `@green` | - | +| @index-bar-index-active-color | `@red` | - | | @index-anchor-z-index | `1` | - | | @index-anchor-padding | `0 @padding-md` | - | | @index-anchor-text-color | `@text-color` | - | diff --git a/src/style/var.less b/src/style/var.less index 84a405520..f7294a19f 100644 --- a/src/style/var.less +++ b/src/style/var.less @@ -421,7 +421,7 @@ @index-bar-sidebar-z-index: 2; @index-bar-index-font-size: @font-size-xs; @index-bar-index-line-height: @line-height-xs; -@index-bar-index-active-color: @green; +@index-bar-index-active-color: @red; // Info @info-size: 16px;