fix:border-style for inputNumber addon when rtl (#35876)

This commit is contained in:
yykoypj 2022-06-02 19:36:10 +08:00 committed by GitHub
parent a5074efcb0
commit 1bae50c6be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View File

@ -46,3 +46,26 @@
} }
} }
} }
// https://github.com/ant-design/ant-design/issues/35870
.input-group(@input-number-prefix-cls) {
> .@{input-number-prefix-cls}-rtl:first-child {
border-radius: 0 @border-radius-base @border-radius-base 0;
}
> .@{input-number-prefix-cls}-rtl:last-child {
border-radius: @border-radius-base 0 0 @border-radius-base;
}
&-addon {
.@{input-number-prefix-cls}-group-rtl &:first-child {
border-right: @border-width-base @border-style-base @input-border-color;
border-left: 0;
border-radius: 0 @border-radius-base @border-radius-base 0;
}
.@{input-number-prefix-cls}-group-rtl &:last-child {
border-right: 0;
border-left: @border-width-base @border-style-base @input-border-color;
border-radius: @border-radius-base 0 0 @border-radius-base;
}
}
}

View File

@ -102,6 +102,7 @@
.@{inputClass}-group-rtl & { .@{inputClass}-group-rtl & {
border-right: 0; border-right: 0;
border-left: @border-width-base @border-style-base @input-border-color; border-left: @border-width-base @border-style-base @input-border-color;
border-radius: @border-radius-base 0 0 @border-radius-base;
} }
} }