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

DP-27950 Add nodes to InputTextFuzzy label prop types #1793

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

bronzehedwick
Copy link
Contributor

Description

Allow InputTextFuzzy label's to contain both strings and JSX elements. This allows for adding visually hidden instructions for accessibility.

Related Issue / Ticket

https://github.com/EOANF/budget/issues/557

Steps to Test

  1. Pass a JSX element to label

  2. Confirm the following warning does not appear in the console

     Warning: Failed prop type: Invalid prop `children` of type `object` supplied to `Label`, expected `string`.
    

Allow InputTextFuzzy label's to contain both strings and JSX elements.
This allows for adding visually hidden instructions for accessibility.
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.

1 participant