Skip to content
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

fix #12395. input group hover style error #12407

Merged
merged 5 commits into from Sep 30, 2018
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 13 additions & 2 deletions components/input/style/mixin.less
Expand Up @@ -26,7 +26,7 @@

// == when hoverd
.hover(@color: @input-hover-border-color) {
border-color: ~`colorPalette("@{color}", 5)`;
border-color: ~`colorPalette("@{color}", 5)` !important;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可否尽量不用 important?

border-right-width: 1px !important;
}

Expand Down Expand Up @@ -263,6 +263,15 @@
display: block;
.clearfix;

&-addon,
&-wrap,
> .@{inputClass} {
&:not(:first-child):not(:last-child) {
border-right-width: 1px;
border-right-color: transparent;
}
}

& > * {
border-radius: 0;
border-right-width: 0;
Expand All @@ -289,7 +298,8 @@
& > .@{ant-prefix}-mention-wrapper .@{ant-prefix}-mention-editor,
& > .@{ant-prefix}-time-picker .@{ant-prefix}-time-picker-input {
border-radius: 0;
border-right-width: 0;
border-right-width: 1px;
border-right-color: transparent;
}

& > *:first-child,
Expand All @@ -313,6 +323,7 @@
border-top-right-radius: @border-radius-base;
border-bottom-right-radius: @border-radius-base;
border-right-width: 1px;
border-right-color: @input-border-color;
}
}
}
Expand Down