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

adjust input style #14912

Merged
merged 2 commits into from Feb 19, 2019
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions components/input/style/index.less
Expand Up @@ -15,6 +15,7 @@
&-wrapper {
display: inline-block;
width: 100%;
text-align: start;
vertical-align: top; // https://github.com/ant-design/ant-design/issues/6403
}
}
Expand Down
3 changes: 3 additions & 0 deletions components/input/style/mixin.less
Expand Up @@ -135,6 +135,7 @@
float: left;
width: 100%;
margin-bottom: 0;
text-align: inherit;
&:focus {
z-index: 1; // Fix https://gw.alipayobjects.com/zos/rmsportal/DHNpoqfMXSfrSnlZvhsJ.png
border-right-width: 1px;
Expand Down Expand Up @@ -346,13 +347,15 @@
position: relative;
display: inline-block;
width: 100%;
text-align: start;

&:hover .@{inputClass}:not(.@{inputClass}-disabled) {
.hover();
}

.@{inputClass} {
position: relative;
text-align: inherit;
}

.@{inputClass}-prefix,
Expand Down