mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-13 04:53:11 +08:00
style: optimize Input.TextArea count style in rtl (#27098)
This commit is contained in:
parent
852b28c235
commit
f0f39895b5
@ -111,6 +111,7 @@ class TextArea extends React.Component<TextAreaProps, TextAreaState> {
|
|||||||
<div
|
<div
|
||||||
className={classNames(`${prefixCls}-textarea`, {
|
className={classNames(`${prefixCls}-textarea`, {
|
||||||
[`${prefixCls}-textarea-show-count`]: showCount,
|
[`${prefixCls}-textarea-show-count`]: showCount,
|
||||||
|
[`${prefixCls}-textarea-rtl`]: direction === 'rtl',
|
||||||
})}
|
})}
|
||||||
{...(showCount ? { 'data-count': dataCount } : {})}
|
{...(showCount ? { 'data-count': dataCount } : {})}
|
||||||
>
|
>
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
&-textarea {
|
&-textarea {
|
||||||
&-show-count::after {
|
&-show-count::after {
|
||||||
display: block;
|
display: block;
|
||||||
color: @normal-color;
|
color: @text-color-secondary;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
content: attr(data-count);
|
content: attr(data-count);
|
||||||
}
|
}
|
||||||
|
@ -33,6 +33,16 @@
|
|||||||
margin: 0 @input-affix-margin 0 0;
|
margin: 0 @input-affix-margin 0 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&-textarea {
|
||||||
|
&-rtl {
|
||||||
|
direction: rtl;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-rtl&-show-count::after {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// allow-clear
|
// allow-clear
|
||||||
|
Loading…
Reference in New Issue
Block a user