Make WordPress Core


Ignore:
Timestamp:
10/20/2025 07:47:31 PM (5 months ago)
Author:
joedolson
Message:

Login and Registration: Add Caps Lock notice to password input.

Add a notification when typing passwords on the user registration, user login, and user profile screens that notifies the user if they are typing with caps lock enabled.

This can help reduce user friction when logging in, prevent user error when creating passwords, and reduce the need for a user to use the show password button.

Props dartiss, swissspidy, johnbillion, nikunj8866, pmbaldha, mosescursor, sirlouen, westonruter, praful2111, devsabbirahmed, kawsar007, najmulsaju, yashyadav247, sajjad67, joedolson.
Fixes #48345.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/forms.css

    r60975 r60988  
    714714}
    715715
     716/* Caps lock warning */
     717.wp-pwd .caps-warning {
     718    display: none;
     719    position: relative;
     720    background: #fcf9e8;
     721    border: 1px solid #f0c33c;
     722    color: #1d2327;
     723    padding: 6px 10px;
     724    top: -8px;
     725}
     726
     727.profile-php .wp-pwd .caps-warning {
     728    padding: 3px 5px;
     729    top: -4px;
     730    border-radius: 4px;
     731}
     732
     733.wp-pwd .caps-icon {
     734    display: inline-flex;
     735    justify-content: center;
     736    width: 20px;
     737    height: 20px;
     738    margin-right: 5px;
     739    vertical-align: middle;
     740}
     741
     742.wp-pwd .caps-warning-text {
     743    vertical-align: middle;
     744}
     745/* Caps lock warning */
     746
    716747p.search-box {
    717748    display: flex;
     
    16411672    }
    16421673
     1674    .profile-php .wp-pwd .caps-warning {
     1675        padding: 8px;
     1676    }
     1677
    16431678    .password-input-wrapper {
    16441679        display: block;
Note: See TracChangeset for help on using the changeset viewer.