-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tooltip,datepicker,tree] fix problems when switch to old theme #2550
Changes from 5 commits
c9a89ad
2066ae4
f99aa4e
94f34e1
3afb194
7a79b6a
9302cf3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,7 +162,9 @@ | |
--tv-color-act-primary-border-light-hover-1: var(--tv-base-color-brand-3); // #beccfa 幽灵hover边框色-2.2 | ||
--tv-color-act-primary-border-light-active-1: var(--tv-base-color-brand-3); // #beccfa 幽灵active边框色-2.2 | ||
|
||
/* 成功-success */ | ||
--tv-color-act-primary-plain-text-hover: var(--tv-base-color-common-1); // #fff | ||
|
||
/* 成功-success */ | ||
--tv-color-act-success-text: var(--tv-base-color-success-6); // #50d4ab 成功文本色-1(成功主色): 朴素/幽灵/纯文本/链接 | ||
--tv-color-act-success-text-hover: var(--tv-base-color-success-6); // #50d4ab 成功hover文本色-1 | ||
--tv-color-act-success-text-active: var(--tv-base-color-success-6); // #50d4ab 成功active文本色-1 | ||
|
@@ -189,6 +191,8 @@ | |
--tv-color-act-success-border-light-hover: var(--tv-base-color-success-1); // #edf7df 成功hover边框色 | ||
--tv-color-act-success-border-light-active: var(--tv-base-color-success-1); // #edf7df 成功active边框色 | ||
|
||
--tv-color-act-success-plain-text-hover: var(--tv-base-color-common-1); // #fff | ||
|
||
/* 告警-warning */ | ||
--tv-color-act-warning-text: var(--tv-base-color-warn-7); // #e37d29 告警文本色-1(告警主色):朴素/幽灵/纯文本/链接 | ||
--tv-color-act-warning-text-hover: var(--tv-base-color-warn-7); // #e37d29 告警hover文本色-1 | ||
|
@@ -216,6 +220,8 @@ | |
--tv-color-act-warning-border-light-hover: var(--tv-base-color-warn-1); // #fff4e8 告警hover边框色 | ||
--tv-color-act-warning-border-light-active: var(--tv-base-color-warn-1); // #fff4e8 告警active边框色 | ||
|
||
--tv-color-act-warning-plain-text-hover: var(--tv-base-color-common-1); // #fff | ||
|
||
/* 危险-danger */ | ||
--tv-color-act-danger-text: var(--tv-base-color-error-12); // #c7000b 危险文本色-1(成功主色):朴素/幽灵/纯文本/链接 | ||
--tv-color-act-danger-text-hover: var(--tv-base-color-error-12); // #c7000b 危险hover文本色-1 | ||
|
@@ -243,6 +249,8 @@ | |
--tv-color-act-danger-border-light-hover: var(--tv-base-color-error-1); // #ffeceb 危险hover边框色 | ||
--tv-color-act-danger-border-light-active: var(--tv-base-color-error-1); // #ffeceb 危险active边框色 | ||
|
||
--tv-color-act-danger-plain-text-hover: var(--tv-base-color-common-1); // #fff | ||
|
||
/* 信息-info */ | ||
--tv-color-act-info-text: var(--tv-base-color-info-7);// 信息文本色-1(信息主色):朴素/幽灵/纯文本/链接 | ||
--tv-color-act-info-text-hover: var(--tv-base-color-info-7); // #5e7ce0 信息hover文本色-1 | ||
|
@@ -270,6 +278,8 @@ | |
--tv-color-act-info-border-light-hover: var(--tv-base-color-info-1); // #f0f7ff 信息hover边框色 | ||
--tv-color-act-info-border-light-active: var(--tv-base-color-info-1); // #f0f7ff 信息active边框色 | ||
|
||
--tv-color-act-info-plain-text-hover: var(--tv-base-color-common-1); // #fff | ||
|
||
/** 2.4 文本色 **/ | ||
--tv-color-text: var(--tv-base-color-common-8); // #252b3a 一级文本色-正文主色,重要信息、标题颜色、输入类文本颜色、导航栏文字图标 | ||
--tv-color-text-secondary: var(--tv-base-color-common-7); // #575d6c 二级文本色-次要信息 | ||
|
@@ -283,6 +293,8 @@ | |
--tv-color-text-link-hover: var(--tv-base-color-brand-10); // #344899 链接悬浮色 | ||
--tv-color-text-darbg: var(--tv-base-color-common-5); // 深色背景文本色,顶级导航/一级tab文本色 | ||
|
||
--tv-color-plain-text-hover: var(--tv-base-color-brand-6); // #5e7c60 | ||
|
||
Comment on lines
+296
to
+297
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification The plain text hover color in old-theme.less is inconsistent with the design system Based on the search results, there's a clear inconsistency in how plain text hover colors are implemented:
The implementation in
🔗 Analysis chainConsider aligning plain text hover color with other hover states. The plain text hover color uses the brand color ( 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check for any existing usage of plain text hover styles
# to understand the context of this color choice
# Search for usage of the plain text hover variable
rg "tv-color-plain-text-hover" -A 5
# Search for related class names or patterns
rg "plain-text.*hover" -A 5
Length of output: 12088 |
||
/** 2.5 图标色 **/ | ||
--tv-color-icon: var(--tv-base-color-common-7); // #575d6c 默认图标色 | ||
--tv-color-icon-hover: var(--tv-base-color-brand-6); // #5e7ce0 图标悬浮色 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
@import '../custom.less'; | ||
@button-prefix-cls: ~'@{css-prefix}button'; | ||
|
||
.@{button-prefix-cls} { | ||
// 默认时按钮圆角 | ||
--tv-Button-border-radius: 2px; | ||
.tiny-button { | ||
// 默认时按钮内图标的大小 | ||
--tv-Button-size-icon-font-size: 14px; | ||
// 超大按钮内图标的大小 | ||
--tv-Button-size-icon-font-size-large: 16px; | ||
// 中等按钮内图标的大小 | ||
--tv-Button-size-icon-font-size-medium: 14px; | ||
// 小型按钮内图标的大小 | ||
--tv-Button-size-icon-font-size-small: 12px; | ||
// 超小按钮内图标的大小 | ||
--tv-Button-size-icon-font-size-mini: 12px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个给改回来~~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已回退