Make WordPress Core

Opened 7 months ago

Closed 3 weeks ago

#60632 closed defect (bug) (fixed)

The focus outline of the "Upload files" button is cut off

Reported by: wildworks's profile wildworks Owned by: hellofromtonya's profile hellofromTonya
Milestone: 6.7 Priority: normal
Severity: normal Version:
Component: Media Keywords: has-patch has-screenshots has-testing-info commit
Focuses: css Cc:

Description

In the media library, when the "Media Library" tab is selected and the "Upload files" tab is focused, the right side of the outline is cut off.

Attachments (7)

media-library.png (8.0 KB) - added by wildworks 7 months ago.
"Media Library" tab is selected and "Upload files" tab is focused
patch.diff (365 bytes) - added by wildworks 7 months ago.
Patch to apply z-index to focused button to prevent cut-off
RTL.png (22.3 KB) - added by huzaifaalmesbah 7 months ago.
after apply patch
media-rtl.png (39.3 KB) - added by wildworks 7 months ago.
Media library in RTL language after applying patch
after applying patch-RTL.png (29.1 KB) - added by huzaifaalmesbah 7 months ago.
I'm testing again, now RTL work properly ✅
before patch.jpg (111.5 KB) - added by krupajnanda 3 months ago.
after patch.jpg (80.8 KB) - added by krupajnanda 3 months ago.

Download all attachments as: .zip

Change History (25)

@wildworks
7 months ago

"Media Library" tab is selected and "Upload files" tab is focused

@wildworks
7 months ago

Patch to apply z-index to focused button to prevent cut-off

#1 @wildworks
7 months ago

  • Keywords has-patch added

#2 @huzaifaalmesbah
7 months ago

Thank you for submitting the report, @wildworks. I've successfully reproduced the issue. After reviewing and testing your patch, I think we need fix for RTL in the patch.

@huzaifaalmesbah
7 months ago

after apply patch

#3 @wildworks
7 months ago

@huzaifaalmesbah Thank you for testing. In my environment, it is also fixed in RTL languages. My understanding is that if we build after applying the patch, it should also be reflected in the RTL stylesheet. What locale did you test it in?

@wildworks
7 months ago

Media library in RTL language after applying patch

@huzaifaalmesbah
7 months ago

I'm testing again, now RTL work properly ✅

This ticket was mentioned in Slack in #core-media by antpb. View the logs.


5 months ago

#5 @antpb
5 months ago

  • Milestone changed from Awaiting Review to 6.6

Moving this in to 6.6 so we can get this merged for the next release.

This ticket was mentioned in Slack in #core-media by antpb. View the logs.


3 months ago

#7 @antpb
3 months ago

  • Owner set to antpb
  • Status changed from new to assigned

This ticket was mentioned in Slack in #core by nhrrob. View the logs.


3 months ago

This ticket was mentioned in Slack in #core-test by nhrrob. View the logs.


3 months ago

#10 @krupajnanda
3 months ago

  • Keywords has-screenshots has-testing-info added

Test Report

Description

This report validates that the indicated patch works as expected. ✅

Patch tested: https://core.trac.wordpress.org/attachment/ticket/60632/patch.diff

Environment

  • WordPress: 6.6-beta3-58440-src
  • PHP: 8.2.15
  • Server: nginx/1.25.3
  • Database: mysqli (Server: 8.0.36 / Client: mysqlnd 8.2.15)
  • Browser: Chrome 125.0.0.0
  • OS: macOS
  • Theme: Twenty Twenty-Four 1.1
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.1.0

Actual Results

  1. ✅ Issue resolved with patch.

Supplemental Artifacts

Add as Attachment

This ticket was mentioned in Slack in #core-test by krupajnanda. View the logs.


3 months ago

#12 @rajinsharwar
3 months ago

Tested the patch, and the problem seems to be resolved.
Before: https://prnt.sc/CU2v2CS18zfy
After: https://prnt.sc/PdjSlNbqfxyl

#13 @sabernhardt
3 months ago

  • Focuses css added
  • Keywords commit added

Updating the z-index for .media-router .media-menu-item:focus worked for me in the following contexts.

Block editor: Image and Gallery blocks' Media Library button, sidebar's "Set featured image" button
Classic Editor: "Add Media" button, Featured Image
Classic Widgets: Image widget, Gallery widget, Text widget "Add Media" button

#14 @oglekler
3 months ago

@audrasjb can you take a look at this one? We have 15 minutes until the commit freeze

#15 @oglekler
3 months ago

  • Milestone changed from 6.6 to 6.7

Unfortunately, this ticket is going into the next milestone.

This ticket was mentioned in Slack in #core by nhrrob. View the logs.


3 months ago

#17 @hellofromTonya
3 weeks ago

  • Owner changed from antpb to hellofromTonya
  • Status changed from assigned to reviewing

Tested the patch in the following contexts:

  • ✅ Block editor: Image and Gallery blocks' Media Library button, sidebar's "Set featured image" button
  • ✅ Classic Editor: "Add Media" button, Featured Image
  • ✅ Classic Widgets: Image widget, Gallery widget, Text widget "Add Media" button

Works for me too. I concur with @sabernhardt - the patch LGTM and is ready for commit.

Self-assigning to commit it.

#18 @hellofromTonya
3 weeks ago

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

In 58917:

Media: Fix Media Library "Upload files" tab focus outline.

Adds a z-index to .media-menu .media-menu-item:focus to fix the "Upload files" tab's outline on the side next to the other tab.

Follow-up to [57553], [46363].

Props wildworks, antpb, huzaifaalmesbah, krupajnanda, nhrrob, oglekler, rajinsharwar, sabernhardt.
Fixes #60632.

Note: See TracTickets for help on using tickets.