mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +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
|
||||
className={classNames(`${prefixCls}-textarea`, {
|
||||
[`${prefixCls}-textarea-show-count`]: showCount,
|
||||
[`${prefixCls}-textarea-rtl`]: direction === 'rtl',
|
||||
})}
|
||||
{...(showCount ? { 'data-count': dataCount } : {})}
|
||||
>
|
||||
|
@ -47,7 +47,7 @@
|
||||
&-textarea {
|
||||
&-show-count::after {
|
||||
display: block;
|
||||
color: @normal-color;
|
||||
color: @text-color-secondary;
|
||||
text-align: right;
|
||||
content: attr(data-count);
|
||||
}
|
||||
|
@ -33,6 +33,16 @@
|
||||
margin: 0 @input-affix-margin 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
&-textarea {
|
||||
&-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
&-rtl&-show-count::after {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// allow-clear
|
||||
|
Loading…
Reference in New Issue
Block a user