3534 Password Toggle Text Variation#3827
Closed
bgoewert wants to merge 40 commits intoWordPress:trunkfrom
Closed
Conversation
Need to use global search next time when renaming things.
…d-toggle` elements
…ton applies to if there are multiple fields
…nstallation page
… to 0 in `.wp-core-ui .button`.
…an words in the input descriptions.
added 3 commits
January 20, 2023 19:05
Conflicts: src/wp-admin/install.php src/wp-admin/user-new.php
…ion of width/padding
Contributor
|
Hello, there is a small conflict in steup-config.php since I committed [55110] |
Conflicts: src/wp-admin/setup-config.php
Author
|
Thanks @audrasjb. I just merged trunk to address the conflict. |
added 6 commits
January 31, 2023 17:56
…php` toggle from aligning properly.
This keep toggle buttons in-line, which was removed with the removal of `display: flex`.
Conflicts: src/wp-admin/install.php
sabernhardt
suggested changes
Feb 2, 2023
|
|
||
| .wp-pwd button { | ||
| height: min-content; | ||
| width: 4.875rem; |
|
|
||
| .wp-pwd button.pwd-toggle .dashicons { | ||
| position: relative; | ||
| top: 0.25rem |
| } | ||
|
|
||
| .password-input-wrapper { | ||
| display: inline-block; |
| <div class="wp-pwd"> | ||
| <?php $initial_password = isset( $_POST['admin_password'] ) ? stripslashes( $_POST['admin_password'] ) : wp_generate_password( 18 ); ?> | ||
| <input type="password" name="admin_password" id="pass1" class="regular-text" autocomplete="new-password" spellcheck="false" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" /> | ||
| <span class="password-input-wrapper"> |
There was a problem hiding this comment.
A div could be set to inline-block, if appropriate, to avoid putting the password-strength div inside a span.
Author
|
Closed in r56008 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.






https://core.trac.wordpress.org/ticket/3534
This a text variation of #3725 to address accessibility concerns and add support for various password manager implementations. The button is separated from the input while still keeping it inline — allowing for password managers which add icons directly to the input, in contrast to those that insert another element to add their respective icon. I did not include the icon, which is inconsistent with the other toggle buttons, so as to provide maximum input space on the setup-config.php form. But the icon can easily be added back to remain consistent.
Figure 1: Separated text password toggle w/ LastPass extension - inactive
Figure 2: Separated text password toggle w/ LastPass extension - active
As a consequence of adding
display: flexto.wp-pwd, the layout for install.php and user-new.php was also affected. I've also added changes to address this. For user-edit.php, user-profile.js#L232 appliesdisplay: blockdirectly to.wp-pwdand was not affected.Figure 3: install.php before.
Figure 4: install.php after change.
Figure 5: install.php after fix.
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.