fix: correct class name for Input component with @ant-prefix variable (#31479)

This commit is contained in:
Benedikt Franke 2021-07-22 13:47:29 +02:00 committed by GitHub
parent eb24d3d8e0
commit 65b8087784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,15 +4,17 @@
@import './affix';
@import './allow-clear';
@input-prefix-cls: ~'@{ant-prefix}-input';
// Input styles
.@{ant-prefix}-input {
.@{input-prefix-cls} {
.reset-component();
.input();
//== Style for input-group: input with label, with button or dropdown...
&-group {
.reset-component();
.input-group(~'@{ant-prefix}-input');
.input-group(~'@{input-prefix-cls}');
&-wrapper {
display: inline-block;
width: 100%;
@ -34,10 +36,10 @@
&[type='color'] {
height: @input-height-base;
&.@{ant-prefix}-input-lg {
&.@{input-prefix-cls}-lg {
height: @input-height-lg;
}
&.@{ant-prefix}-input-sm {
&.@{input-prefix-cls}-sm {
height: @input-height-sm;
padding-top: 3px;
padding-bottom: 3px;