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 error classes on fields if errors found #38

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

dwanjuki
Copy link

@dwanjuki dwanjuki commented Aug 23, 2024

The pmpro_form_input-error class was not being applied to the First Name and Last Name fields when errors were found (e.g. If fields required but blank).

Passing the element to pmpro_get_element_class so PMPro error classes are applied.

Before:
an2c

After:
an2c-after

@dwanjuki dwanjuki marked this pull request as ready for review August 23, 2024 13:33
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.

1 participant