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: add i18n error message support for RadioButtonGroup #6477

Merged
merged 3 commits into from
Jul 30, 2024

Conversation

vursen
Copy link
Contributor

@vursen vursen commented Jul 24, 2024

Description

The PR introduces RadioButtonGroupI18n with a method for setting a required error message and updates the RadioButtonGroup's validation logic to show this error message when validation fails. It should be mentioned that RadioButtonGroup is an atypical component in terms of validation. It has a required flag, but no user interaction can trigger the required error message – the message only appears if the value is programmatically reset to null. Therefore, the i18n object is practically unnecessary, but it's still added to maintain consistency with other components.

Part of #4618

Type of change

  • Feature

@vursen vursen marked this pull request as ready for review July 24, 2024 14:51
@vursen vursen enabled auto-merge (squash) July 30, 2024 07:21
Copy link

sonarcloud bot commented Jul 30, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
20.1% Duplication on New Code (required ≤ 10%)

See analysis details on SonarCloud

@vursen vursen merged commit 3f01844 into main Jul 30, 2024
4 of 5 checks passed
@vursen vursen deleted the feat/radio-group/error-messages branch July 30, 2024 07:54
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.5.0.alpha7 and is also targeting the upcoming stable 24.5.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants