Skip to content

Commit aa91f55

Browse files
committed
fixup! Add the missing support of help texts to InputGroup (#663)
1 parent 6c23099 commit aa91f55

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/components/FileInputField/FileInputField.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ FileInputField.propTypes = {
269269
/**
270270
* Optional help text.
271271
*
272-
* Help text is never rendered when the component is placed into `InputGroup`. Instead, the `InputGroup`
273-
* component itself renders all help texts of its nested components.
272+
* Help text is never rendered when the component is placed into `InputGroup`.
273+
* If a help text is needed, it must be defined on the `InputGroup` component instead.
274274
*/
275275
helpText: PropTypes.node,
276276
/**
@@ -325,8 +325,8 @@ FileInputField.propTypes = {
325325
/**
326326
* Validation message to be displayed.
327327
*
328-
* Validation text is never rendered when the component is placed into `InputGroup`. Instead, the `InputGroup`
329-
* component itself renders all validation texts of its nested components.
328+
* Validation text is never rendered when the component is placed into `InputGroup`.
329+
* If a validation text is needed, it must be defined on the `InputGroup` component instead.
330330
*/
331331
validationText: PropTypes.node,
332332
};

src/components/SelectField/SelectField.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ SelectField.propTypes = {
173173
* If `key` in the option definition object is set,
174174
* then `option.key` is used instead of `option.value` in place of `<VALUE>`.
175175
*
176-
* Help text is never rendered when the component is placed into `InputGroup`. Instead, the `InputGroup`
177-
* component itself renders all help texts of its nested components.
176+
* Help text is never rendered when the component is placed into `InputGroup`.
177+
* If a help text is needed, it must be defined on the `InputGroup` component instead.
178178
*/
179179
id: PropTypes.string,
180180
/**
@@ -252,8 +252,8 @@ SelectField.propTypes = {
252252
/**
253253
* Validation message to be displayed.
254254
*
255-
* Validation text is never rendered when the component is placed into `InputGroup`. Instead, the `InputGroup`
256-
* component itself renders all validation texts of its nested components.
255+
* Validation text is never rendered when the component is placed into `InputGroup`.
256+
* If a help text is needed, it must be defined on the `InputGroup` component instead.
257257
*/
258258
validationText: PropTypes.node,
259259
/**

src/components/TextField/TextField.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ TextField.propTypes = {
133133
/**
134134
* Optional help text.
135135
*
136-
* Help text is never rendered when the component is placed into `InputGroup`. Instead, the `InputGroup`
137-
* component itself renders all help texts of its nested components.
136+
* Help text is never rendered when the component is placed into `InputGroup`.
137+
* If a help text is needed, it must be defined on the `InputGroup` component instead.
138138
*/
139139
helpText: PropTypes.node,
140140
/**
@@ -188,8 +188,8 @@ TextField.propTypes = {
188188
/**
189189
* Validation message to be displayed.
190190
*
191-
* Validation text is never rendered when the component is placed into `InputGroup`. Instead, the `InputGroup`
192-
* component itself renders all validation texts of its nested components.
191+
* Validation text is never rendered when the component is placed into `InputGroup`.
192+
* If a help text is needed, it must be defined on the `InputGroup` component instead.
193193
*/
194194
validationText: PropTypes.node,
195195
/**

0 commit comments

Comments
 (0)