Make WordPress Core

Opened 4 months ago

Closed 4 months ago

Last modified 4 months ago

#63950 closed defect (bug) (fixed)

Tabbing through database upgrade screen shows "WordPress" text over logo

Reported by: johnbillion's profile johnbillion Owned by: joedolson's profile joedolson
Milestone: 6.9 Priority: normal
Severity: normal Version: 5.5
Component: Upgrade/Install Keywords: has-patch commit
Focuses: accessibility Cc:

Description

When the "Database Update Required" screen is shown, tabbing through it reveals the word WordPress partially overlaying the W logo.

To reproduce

  • Trigger a database upgrade, for example by manually reducing the value of the db_version and initial_db_version options
  • Visit wp-admin, you'll be redirected to wp-admin/upgrade.php
  • Press tab and observe that when the W logo receives focus, the word WordPress partially overlays the logo
  • Observe that the overlay doesn't disappear once focus moves elsewhere

I reproduced this on a site running 6.4 but it may have existed prior to that. Or it's caused by a change in browser behaviour.

Tested in Chrome/Chromium 139 and 140.

Attachments (2)

2025-09-09-22-33-24@2x.png (14.9 KB) - added by johnbillion 4 months ago.
Screenshot
63950.diff (1.5 KB) - added by sabernhardt 4 months ago.
removes links from logos on upgrade.php and maint/repair.php, and removes entire 'logo' paragraph when install.php is accessed without PHP running

Download all attachments as: .zip

Change History (9)

@johnbillion
4 months ago

Screenshot

@sabernhardt
4 months ago

removes links from logos on upgrade.php and maint/repair.php, and removes entire 'logo' paragraph when install.php is accessed without PHP running

#1 @sabernhardt
4 months ago

  • Keywords has-patch added
  • Version set to 5.5

Chrome apparently does not like hiding an interactive element with text-indent, which is probably a good thing. The browser behavior for these links might have changed since 2020, but I can reproduce it back to WordPress 5.5.

#47759 removed the link from the install.php and setup-config.php screens. I would prefer to remove the similar links from additional pages that use the install stylesheet.

  • wp-admin/upgrade.php
  • wp-admin/maint/repair.php
  • wp-admin/install.php: Where it checks whether PHP is running, the page would not have a stylesheet, and I think the entire paragraph could be removed. Or if the link is worth keeping there, simply removing the id could help to avoid confusion.

(Another option I considered was to set the link to display: block with width and height at 100%, but then Chrome would only show a box-shadow on the bottom and Firefox would not show any focus indicator.)

Last edited 4 months ago by sabernhardt (previous) (diff)

#2 @johnbillion
4 months ago

  • Milestone changed from Awaiting Review to 6.9

#3 @joedolson
4 months ago

  • Owner set to joedolson
  • Status changed from new to accepted

#4 @joedolson
4 months ago

Because the links are set offscreen using text-indent, they're not clickable using a mouse, so the majority of users are not going to miss anything by removing these.

I also agree that since there is no CSS when PHP isn't running, there's no reason to output something that requires it. It would be nice to have a help link to point people to, but from a practical standpoint, I'm not sure there's anything we can say. This is a place where people will just need to contact their host.

Looking at the practical outcomes here, I don't see any reason not to go with these as they are.

#5 @joedolson
4 months ago

  • Keywords commit added

This ticket was mentioned in PR #10144 on WordPress/wordpress-develop by @joedolson.


4 months ago
#6

Testing changes from 63950

Trac ticket: https://core.trac.wordpress.org/ticket/63950

#7 @joedolson
4 months ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 60898:

Upgrade/Install: WordPress text shows over logo on tab.

On the upgrade and repair screens, the logo link to wordpress.org was hidden using negative text-indent. This method makes the link impossible to click on using a mouse, and causes the text to overlay the image on keyboard focus.

On the install screen, if PHP is not running, the styles are not applied, leaving an unstyled link.

Remove the links for consistency with other screens following r47745.

Props johnbillion, sabernhardt, joedolson.
Fixes #63950.

Last edited 4 months ago by SergeyBiryukov (previous) (diff)
Note: See TracTickets for help on using tickets.