Opened 16 months ago
Closed 6 weeks ago
#8986 closed defect (bug) (fixed)
Register page input values display in invalid state by default
Reported by: | vapvarun | Owned by: | espellcaste |
---|---|---|---|
Milestone: | 15.0.0 | Priority: | normal |
Severity: | normal | Version: | 11.3.1 |
Component: | Templates | Keywords: | has-patch |
Cc: |
Description
When validating registration fields, the invalid CSS class is applied on the first load of the registration form, even before filling in any values.
.buddypress-wrap .standard-form input[required]:invalid, .buddypress-wrap .standard-form select[required]:invalid, .buddypress-wrap .standard-form textarea[required]:invalid { border-color: #b71717; }
buddypress/bp-templates/bp-nouveau/css/buddypress.min.css
We can replace it with the following to set the default when nothing is filled.
.buddypress-wrap .standard-form input[required], .buddypress-wrap .standard-form select[required], .buddypress-wrap .standard-form textarea[required] { border-color: #d6d6d6;; }
After submitting values, we already have a different CSS object for the invalid one.
.buddypress-wrap .standard-form input.invalid[required], .buddypress-wrap .standard-form select.invalid[required], .buddypress-wrap .standard-form textarea.invalid[required] { border-color: #b71717; }
Attachments (2)
Change History (10)
#1
@
6 months ago
- Milestone changed from Awaiting Review to Up Next
@vapvarun Can you confirm if the patch above fixes your issue?
#2
@
6 months ago
Yes, @espellcaste, the above patch will resolve the issue. It was created to help @upenwp12 start contributing to BuddyPress.
#4
@
4 months ago
- Keywords has-patch added
- Owner set to espellcaste
- Status changed from new to assigned
I'll look into applying the patch and confirming if it fixes the issue.
Register page with default theme