Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add required field indicator and rich labels #145

Merged
merged 7 commits into from
May 25, 2020

Conversation

niglu1
Copy link
Contributor

@niglu1 niglu1 commented May 25, 2020

Description

  • Added a required prop for TextInput, TextArea and Dropdown
    • If true, the label is displayed as required. The native elements will be required for text fields.
  • Deprecated the labelText prop in favour of a new label prop (for TextInput, TextArea, Dropdown). The label prop accepts strings and react nodes, so you could e.g. include a link in a label (Consider allowing richer content for checkbox labels #140)

Related issues

Closes #140

@niglu1 niglu1 requested review from badrange and lehtoinen May 25, 2020 09:23
@niglu1 niglu1 merged commit 28358ed into master May 25, 2020
@niglu1 niglu1 deleted the feature/required-field-indicator-and-rich-labels branch May 25, 2020 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider allowing richer content for checkbox labels
2 participants