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

Add validation message to required checkbox in ChoosePasswordFields #1936

Merged
merged 5 commits into from
May 24, 2024

Conversation

lukaw3d
Copy link
Member

@lukaw3d lukaw3d commented May 15, 2024

Fixes #1925

(also improved checkbox focus state in case we don't have validation messages in some component)

Before After
Screenshot from 2024-05-15 02-35-06 Screenshot from 2024-05-15 02-33-33

@lukaw3d lukaw3d requested a review from buberdds May 15, 2024 00:42
Copy link

github-actions bot commented May 15, 2024

Deployed to Cloudflare Pages

Latest commit: 0aa373162f626b763d7a2cf029985937d8a8ebd2
Status:✅ Deploy successful!
Preview URL: https://d32fb596.oasis-wallet.pages.dev

@@ -69,7 +72,6 @@ export function ChoosePasswordFields() {
>
<CheckBox
name="profileStorageUndependableAcknowledge"
required
Copy link
Contributor

Choose a reason for hiding this comment

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

I would remove this prop in ChoosePasswordInputFields password1 field too so validation is consistent.

Copy link
Contributor

Choose a reason for hiding this comment

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

as long as it works everywhere. looks like it's used in more than one place.

Copy link
Member Author

Choose a reason for hiding this comment

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

👍 removed

@lukaw3d lukaw3d merged commit a70bdbf into master May 24, 2024
13 checks passed
@lukaw3d lukaw3d deleted the lw/checkbox-focus branch May 24, 2024 03:18
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.

Create Profile form validation
2 participants