Skip to:
Content

BuddyPress.org

Changeset 11775


Ignore:
Timestamp:
12/13/2017 10:50:41 AM (4 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

Location:
trunk/src/bp-templates/bp-nouveau
Files:
3 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        }
  • trunk/src/bp-templates/bp-nouveau/css/buddypress-rtl.css

    r11757 r11775  
    32503250}
    32513251
     3252.buddypress-wrap .standard-form input.invalid[required],
     3253.buddypress-wrap .standard-form textarea.invalid[required],
     3254.buddypress-wrap .standard-form select.invalid[required] {
     3255    border-color: #b71717;
     3256}
     3257
    32523258.buddypress-wrap .standard-form input:not(.button-small),
    32533259.buddypress-wrap .standard-form textarea {
  • trunk/src/bp-templates/bp-nouveau/css/buddypress.css

    r11757 r11775  
    32503250}
    32513251
     3252.buddypress-wrap .standard-form input.invalid[required],
     3253.buddypress-wrap .standard-form textarea.invalid[required],
     3254.buddypress-wrap .standard-form select.invalid[required] {
     3255    border-color: #b71717;
     3256}
     3257
    32523258.buddypress-wrap .standard-form input:not(.button-small),
    32533259.buddypress-wrap .standard-form textarea {
Note: See TracChangeset for help on using the changeset viewer.