Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/13/2017 10:50:41 AM (7 years ago)
Author:
hnla
Message:

Nouveau: Add ruleset to support signup BP checks for in use names/emails

Commit adds rule to ensure invalid submissions where username or email already exists are styled with the visual warning indicator.
This ensures that a technically valid input value styled on the CSS pseudo attribute as valid may be overwritten for a BP error response.

This supports recent changes to nouveau_signup_form to add classes on error return response in r11770

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/common-styles/_bp_forms.scss

    r11757 r11775  
    9494        }
    9595
    96         // Manage browser pseudo class validation states
     96        // Manage browser pseudo class validation states & static 'invalid' class
    9797        input,
    9898        textarea,
     
    122122                    border-width: 1px;
    123123                }
     124            }
     125
     126            // Class set when BP global signup errors exist.
     127            // This needs to be stated after the  pseudo :valid
     128            // as technically the input has a valid value.
     129            &.invalid[required] {
     130                border-color: $warn;
    124131            }
    125132        }
Note: See TracChangeset for help on using the changeset viewer.