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

fix(w-field): ensure default error text is translated on time #148

Merged
merged 2 commits into from
Mar 15, 2024

Conversation

BalbinaK
Copy link
Contributor

@BalbinaK BalbinaK commented Mar 14, 2024

Description

Fixes WARP-519 and WARP-518

The i18n call is now moved to w-field in order for the validationMsg translation to trigger in the right moment.

Additionally:

  • hasValidationErrors is replaced with isInvalid to simplify the validation logic in the template
  • invalid prop is now included in the validation checks, so when a component relies on invalid prop when handling validation, it also contains default validation message and respective aria attributes

invalid

@BalbinaK BalbinaK requested a review from a team March 14, 2024 15:15
Copy link
Contributor

@felicia-haggqvist felicia-haggqvist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🎉

@BalbinaK BalbinaK merged commit 36dcf1c into next Mar 15, 2024
5 checks passed
@BalbinaK BalbinaK deleted the fix/required-helptext-translation branch March 15, 2024 08:18
github-actions bot pushed a commit that referenced this pull request Mar 15, 2024
## [1.2.6-next.2](v1.2.6-next.1...v1.2.6-next.2) (2024-03-15)

### Bug Fixes

* **w-field:** ensure default error text is translated on time ([#148](#148)) ([36dcf1c](36dcf1c))
github-actions bot pushed a commit that referenced this pull request Mar 21, 2024
## [1.2.6](v1.2.5...v1.2.6) (2024-03-21)

### Bug Fixes

* add missing aria attribute to w-textarea and w-select ([#146](#146)) ([191be0f](191be0f))
* **w-field:** ensure default error text is translated on time ([#148](#148)) ([36dcf1c](36dcf1c))
* **w-field:** use correct colors in label and hint/error text ([#150](#150)) ([fa3a621](fa3a621))
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.

2 participants