Login and Registration: Underline links on the login screen#12154
Login and Registration: Underline links on the login screen#12154itzmekhokan wants to merge 1 commit into
Conversation
The navigation and "Back to" links on wp-login.php were rendered without an underline because the `.login #nav a, .login #backtoblog a` rule set `text-decoration: none`. With only a muted gray color to distinguish them, accessibility scanning tools flagged the links as not identifiable. Removing the `text-decoration: none` declaration restores the browser default underline, making the links clearly identifiable. The default underline is sufficient, so no `!important` override is required. Following discussion in the accessibility team bug scrub, this was agreed to meaningfully improve the accessibility and usability of the login screen. Props dcavins, audrasjb, khushdoms, joedolson. See #65075.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
Restores the default underline on the navigation and "Back to" links on wp-login.php so they are clearly identifiable as links.
What the problem was:
.login #nav a, .login #backtoblog arule in login.css settext-decoration: none, leaving the links with only a muted gray color.What the fix does:
text-decoration: none;declaration from that rule, letting the browser-default underline apply.Approach and why:
arules on the login screen set no text-decoration, so this one declaration was the only thing suppressing the underline. Removing it is the smallest change that achieves the agreed outcome.!importantis needed — WordPress.org used it only to override core from a separate stylesheet; here the source ofnoneis removed directly.Trac ticket: https://core.trac.wordpress.org/ticket/65075
Use of AI Tools
N/A
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.