Skip to:
Content

BuddyPress.org

Opened 11 months ago

Last modified 3 weeks ago

#8986 new defect (bug)

Register page input values display in invalid state by default

Reported by: vapvarun's profile vapvarun Owned by:
Milestone: 15.0.0 Priority: normal
Severity: normal Version: 11.3.1
Component: Templates Keywords:
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)

Screenshot 2023-08-30 140611.png (146.0 KB) - added by vapvarun 11 months ago.
Register page with default theme
8986.patch (912 bytes) - added by upenwp12 11 months ago.
patch for #8986

Download all attachments as: .zip

Change History (5)

@vapvarun
11 months ago

Register page with default theme

@upenwp12
11 months ago

patch for #8986

#1 @espellcaste
5 weeks ago

  • Milestone changed from Awaiting Review to Up Next

@vapvarun Can you confirm if the patch above fixes your issue?

#2 @vapvarun
5 weeks ago

Yes, @espellcaste, the above patch will resolve the issue. It was created to help @upenwp12 start contributing to BuddyPress.

#3 @imath
3 weeks ago

  • Milestone changed from Up Next to 15.0.0
Note: See TracTickets for help on using tickets.