Skip to content

Commit

Permalink
Change label of inputs to accept any node (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
bedrich-schindler committed May 30, 2024
1 parent 0678b11 commit d721617
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/CheckboxField/CheckboxField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ CheckboxField.propTypes = {
/**
* Checkbox field label.
*/
label: PropTypes.string.isRequired,
label: PropTypes.node.isRequired,
/**
* Placement of the label relative to the input.
*/
Expand Down
4 changes: 2 additions & 2 deletions src/components/FileInputField/FileInputField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ FileInputField.propTypes = {
*/
isLabelVisible: PropTypes.bool,
/**
* Text field label.
* File input field label.
*/
label: PropTypes.string.isRequired,
label: PropTypes.node.isRequired,
/**
* Layout of the field.
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/Radio/Radio.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Radio.propTypes = {
/**
* Label of the group of options.
*/
label: PropTypes.string.isRequired,
label: PropTypes.node.isRequired,
/**
* Layout of the field.
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/SelectField/SelectField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ SelectField.propTypes = {
/**
* Select field label.
*/
label: PropTypes.string.isRequired,
label: PropTypes.node.isRequired,
/**
* Layout of the field.
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/TextArea/TextArea.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ TextArea.propTypes = {
/**
* Text field label.
*/
label: PropTypes.string.isRequired,
label: PropTypes.node.isRequired,
/**
* Layout of the field.
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/TextField/TextField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ TextField.propTypes = {
/**
* Text field label.
*/
label: PropTypes.string.isRequired,
label: PropTypes.node.isRequired,
/**
* Layout of the field.
*
Expand Down
2 changes: 1 addition & 1 deletion src/components/Toggle/Toggle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Toggle.propTypes = {
/**
* Toggle label.
*/
label: PropTypes.string.isRequired,
label: PropTypes.node.isRequired,
/**
* Placement of the label relative to the input.
*/
Expand Down

0 comments on commit d721617

Please sign in to comment.