Skip to content

Commit

Permalink
fix(FormGroup): use node prop type for legend text (#6691)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
emyarod and kodiakhq[bot] committed Aug 19, 2020
1 parent b20b7fb commit 03438eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2680,7 +2680,7 @@ Map {
},
"legendText": Object {
"isRequired": true,
"type": "string",
"type": "node",
},
"message": Object {
"type": "bool",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/FormGroup/FormGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ FormGroup.propTypes = {
/**
* Provide the text to be rendered inside of the fieldset <legend>
*/
legendText: PropTypes.string.isRequired,
legendText: PropTypes.node.isRequired,

/**
* Specify whether the message should be displayed in the <FormGroup>
Expand Down

0 comments on commit 03438eb

Please sign in to comment.