mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
fix color of form help text
This commit is contained in:
parent
112317e0ea
commit
287c45292d
@ -47,6 +47,11 @@ class FormItem extends React.Component {
|
||||
);
|
||||
}
|
||||
|
||||
renderExtra() {
|
||||
const { prefixCls, extra } = this.props;
|
||||
return <div className={prefixClsFn(prefixCls, 'extra')}>{extra}</div>;
|
||||
}
|
||||
|
||||
getValidateStatus() {
|
||||
const { isFieldValidating, getFieldError, getFieldValue } = this.context.form;
|
||||
const field = this.getId();
|
||||
@ -142,7 +147,7 @@ class FormItem extends React.Component {
|
||||
this.renderValidateWrapper(
|
||||
children,
|
||||
this.renderHelp(),
|
||||
props.extra
|
||||
this.renderExtra(),
|
||||
)
|
||||
),
|
||||
];
|
||||
|
@ -102,6 +102,11 @@ input[type="checkbox"] {
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
.@{css-prefix}form-explain,
|
||||
.@{css-prefix}form-extra {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.@{css-prefix}form-text {
|
||||
display: inline-block;
|
||||
padding-right: 8px;
|
||||
|
Loading…
Reference in New Issue
Block a user