-
Notifications
You must be signed in to change notification settings - Fork 299
fix(radio): [radio,select,tree-select,checkbox,radio,button] fix the style of dark themes #3237
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
Changes from all commits
d5345c0
be3a16a
e5241f3
71891fd
fa4e5e9
2836b10
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 |
---|---|---|
|
@@ -111,12 +111,14 @@ | |
&:active, | ||
&:focus, | ||
&:hover, | ||
&.is-active { | ||
&.is-active, | ||
&.is-loading.is-loading.is-loading.is-loading.is-loading { | ||
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. The repeated class |
||
background-color: e(@bg); | ||
border-color: e(@border); | ||
color: e(@c); | ||
} | ||
} | ||
|
||
// 激活态: 叠加到 ghost 状态上。 | ||
.color-ghost-active-mixin(@theme) { | ||
@border: %('var(--tv-Button-border-color-ghost-active-%a)', @theme); | ||
|
@@ -221,9 +223,8 @@ | |
|
||
// 禁用态+loading 优先级最高, 五优先级 | ||
&.is-disabled.is-disabled.is-disabled.is-disabled.is-disabled, | ||
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. The repeated class |
||
&.is-loading.is-loading.is-loading.is-loading.is-loading, | ||
&[disabled][disabled][disabled][disabled][disabled] { | ||
color: var(--tv-Button-text-color-disabled); | ||
color: var(--tv-Button-text-color-disabled); | ||
background-color: var(--tv-Button-bg-color-disabled); | ||
border-color: var(--tv-Button-border-color-disabled); | ||
fill: var(--tv-Button-icon-color-disabled); | ||
|
@@ -232,9 +233,29 @@ | |
&.is-ghost { | ||
border-color: var(--tv-Button-border-color-ghost-disabled); | ||
} | ||
// 仅图标,禁用时无背景 | ||
|
||
&.is-only-icon { | ||
background-color: transparent; | ||
.tiny-svg { | ||
fill: var(--tv-Button-icon-color-disabled); | ||
} | ||
// 仅图标且无边框类型,禁用时无背景 | ||
&.tiny-button--text { | ||
background-color: transparent; | ||
} | ||
} | ||
} | ||
|
||
&.is-loading { | ||
&.@{button-prefix-cls}--default { | ||
.tiny-svg { | ||
fill: var(--tv-Button-icon-color-default-loading); | ||
} | ||
} | ||
|
||
&.@{button-prefix-cls}--primary { | ||
.tiny-svg { | ||
fill: var(--tv-Button-icon-color-primary-loading); | ||
} | ||
} | ||
} | ||
|
||
|
@@ -316,7 +337,7 @@ | |
background-color: var(--tv-Button-bg-color-only-icon-ontext); | ||
// 无边框时的仅图标按钮,增加图标默认颜色 | ||
svg { | ||
fill: var(--tv-Button-bg-color-only-icon) | ||
fill: var(--tv-Button-bg-color-only-icon); | ||
} | ||
&:active, | ||
&:focus, | ||
|
@@ -325,7 +346,7 @@ | |
background-color: var(--tv-Button-bg-color-only-icon-ontext-hover); | ||
// 无边框时的仅图标按钮,增加图标悬浮颜色 | ||
svg { | ||
fill: var(--tv-Button-bg-color-only-icon-hover) | ||
fill: var(--tv-Button-bg-color-only-icon-hover); | ||
} | ||
} | ||
// 不同的尺寸,icon大小 为高度。 原型稿不包含 | ||
|
@@ -352,7 +373,7 @@ | |
&.is-disabled { | ||
&:hover { | ||
svg { | ||
fill: var(--tv-Button-disabled-color-only-icon-hover) | ||
fill: var(--tv-Button-disabled-color-only-icon-hover); | ||
} | ||
} | ||
} | ||
|
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.
💡 Verification agent
🧩 Analysis chain
Added timeout before clicking on grid row to improve test stability.
Adding a fixed timeout of 500ms before clicking on a row element might help with test stability, but fixed timeouts can make tests flaky and unpredictable. Consider using explicit waiting conditions instead.
🏁 Script executed:
Length of output: 25658
Replace Fixed Timeout with Explicit Wait for Element Visibility
The current fixed timeout of 500 ms may boost stability in a quick fix, but it can ultimately lead to flakiness. It’s recommended to replace this fixed delay with an explicit wait that confirms the grid row element is visible and stable before interacting with it. For instance:
This change not only targets a more reliable condition but also aligns with improvements observed in several other tests within the codebase. Please update this instance—and consider reviewing similar
waitForTimeout
usages—to enhance overall test stability.📝 Committable suggestion