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

feat(TextInput): add an option to display error via tooltip #821

Merged
merged 14 commits into from
Sep 4, 2023

Conversation

ilya-878
Copy link
Contributor

  1. Add 3 new props for TextInput component (errorMessage, errorPlacement, validationState) and 2 new props for TextArea component (errorMessage, validationState).
  2. Create errorPropsMapper function that updates new props based on the deprecated prop (error).
  3. Add error-in-tooltip feature for TextInput component.
  4. Write few tests for new props for both components.
  5. Add few error examples to the TextInputShowcase.
  6. Mark 'error' prop as deprecated.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

src/components/controls/utils.ts Outdated Show resolved Hide resolved
src/components/controls/utils.ts Outdated Show resolved Hide resolved
src/components/controls/utils.ts Outdated Show resolved Hide resolved
src/components/controls/TextInput/TextInput.scss Outdated Show resolved Hide resolved
src/components/controls/TextArea/TextArea.tsx Outdated Show resolved Hide resolved
src/components/controls/TextArea/TextArea.tsx Outdated Show resolved Hide resolved
src/components/controls/types.ts Outdated Show resolved Hide resolved
@saxumcordis saxumcordis requested a review from amje August 25, 2023 16:20
@amje amje changed the title feat(TextInput, TextArea): add an option to display error via tooltip for TextInput (updated version) feat(TextInput): add an option to display error via tooltip Aug 31, 2023
@saxumcordis saxumcordis merged commit f883f01 into gravity-ui:main Sep 4, 2023
3 checks passed
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.

6 participants