-
Notifications
You must be signed in to change notification settings - Fork 302
fix: [file-upload,input] Fix the icon color #3243
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
Conversation
WalkthroughThis PR updates the CSS in the upload list component. The fill color for the Changes
Possibly related PRs
Suggested reviewers
Poem
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
WalkthroughThis PR addresses the adaptation of the dark theme by modifying the icon color in the file upload component. It changes the static color value to a CSS variable for better theme compatibility and introduces a new style for text description. Changes
|
@@ -291,12 +291,16 @@ | |||
} | |||
|
|||
&__icon-operationfaild { | |||
fill: #f23030; | |||
fill: var(--tv-UploadList-item-fail-text-color); |
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.
The color value for &__icon-operationfaild
has been changed from a hardcoded color to a CSS variable var(--tv-UploadList-item-fail-text-color)
, which improves adaptability to different themes.
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/theme/src/upload-list/index.less (1)
293-298
: Updated Icon Color Using a CSS Variable
The fill property for the&__icon-operationfaild
class is now set tovar(--tv-UploadList-item-fail-text-color)
, which improves theme flexibility for dark mode. Please verify that this CSS variable is defined in your theme’s variables (e.g., invars.less
orcustom.less
). Additionally, consider providing a fallback value (e.g.,var(--tv-UploadList-item-fail-text-color, #f23030)
) if backward compatibility is a concern.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
packages/theme/src/upload-list/index.less
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: PR E2E Test (pnpm test:e2e3)
🔇 Additional comments (1)
packages/theme/src/upload-list/index.less (1)
300-302
: Introduction of New Text Description Style
The new&__text-desc
class setting aline-height
of 30px is a clear and concise addition for improving text layout. Please ensure that the spacing aligns with the overall design guidelines and check that no conflicts occur with other text styles used in the upload list component.
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.
Actionable comments posted: 0
🧹 Nitpick comments (2)
packages/theme/src/input/index.less (2)
45-48
: Improved Vertical Alignment in Disabled Mask Element
The addition ofpadding-top: 10px;
within the.is-disabled &__inner .@{input-prefix-cls}__mask
selector should help improve the vertical spacing when the input is disabled. Please verify that this change integrates smoothly with the dark theme styling and does not introduce any unexpected layout shifts in various browsers.
318-325
: Enhanced Spacing in Display-Only Mode
The newpadding-top: 10px;
in the&__mask-text
selector under the.is-display-only
block improves text alignment. Ensure that this adjustment is consistently applied across different themes (including dark mode) and that it harmonizes with existing spacing rules.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
examples/sites/demos/mobile-first/app/input/mask.vue
(0 hunks)packages/theme/src/input/index.less
(2 hunks)packages/theme/src/upload-list/index.less
(1 hunks)
💤 Files with no reviewable changes (1)
- examples/sites/demos/mobile-first/app/input/mask.vue
🚧 Files skipped from review as they are similar to previous changes (1)
- packages/theme/src/upload-list/index.less
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: PR Unit Test
- GitHub Check: PR E2E Test (pnpm test:e2e3)
PR
fix:暗色主题适配
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit
.demo-input
class by removing unnecessary margin spacing between child elements.