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

Decouple the validation from the presentation of invalid fields #4577

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jcoyne
Copy link
Collaborator

@jcoyne jcoyne commented Jul 31, 2024

Why was this change made?

We have css classes sprinkled into the validation code. We can just use the validation API instead. Doesn't depend on SASS.

@jcoyne jcoyne force-pushed the decouple-validation-presentation branch 2 times, most recently from 6df9c2f to 94bf10c Compare July 31, 2024 17:33
@jcoyne jcoyne changed the title Decouple the validation from the presentation of invalid fields [HOLD] Decouple the validation from the presentation of invalid fields Jul 31, 2024
@jcoyne jcoyne force-pushed the decouple-validation-presentation branch from 94bf10c to 03b2885 Compare July 31, 2024 17:49
@jcoyne jcoyne force-pushed the decouple-validation-presentation branch from 03b2885 to ca94c73 Compare July 31, 2024 18:38
@andrewjbtw
Copy link

The validation is now running immediately on page load. This is making the required fields light up in red and the cursor is placed in the label field. Sometimes my browser is taken to the label field and sometimes (as in the recording below) it's not taken there, but the validation message still appears on the screen.

Screen.Recording.2024-07-31.at.1.43.19.PM.mov

@jcoyne jcoyne force-pushed the decouple-validation-presentation branch 4 times, most recently from 344daf5 to 857835e Compare July 31, 2024 22:59
@jcoyne jcoyne force-pushed the decouple-validation-presentation branch from 857835e to 2c3e9e8 Compare July 31, 2024 23:00
@jcoyne jcoyne changed the title [HOLD] Decouple the validation from the presentation of invalid fields Decouple the validation from the presentation of invalid fields Jul 31, 2024
@jcoyne
Copy link
Collaborator Author

jcoyne commented Jul 31, 2024

Andrew approved changes on Slack.

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.

3 participants