Skip to content

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

Merged
merged 1 commit into from
Apr 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions examples/sites/demos/mobile-first/app/input/mask.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,4 @@ export default {
.demo-input {
width: 150px;
}

.demo-input > * {
margin-bottom: 10px;
}
</style>
2 changes: 2 additions & 0 deletions packages/theme/src/input/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

&.@{input-prefix-cls}__mask {
color: #999;
padding-top: 10px;
}
}

Expand Down Expand Up @@ -320,6 +321,7 @@
white-space: nowrap;
flex: 1;
margin-right: 16px;
padding-top: 10px;
}
}
}
Expand Down
6 changes: 5 additions & 1 deletion packages/theme/src/upload-list/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -291,12 +291,16 @@
}

&__icon-operationfaild {
fill: #f23030;
fill: var(--tv-UploadList-item-fail-text-color);

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.

margin-right: 8px;
margin-left: 4px;
font-size: 16px;
}

&__text-desc {
line-height: 30px;
}

&__item-tooltip {
display: flex;
align-items: center;
Expand Down
Loading