Make WordPress Core


Ignore:
Timestamp:
08/14/2025 11:06:45 PM (8 months ago)
Author:
joedolson
Message:

Media: Fix button focus visibility in media uploads.

Following [r58279], the focus outline on the Edit button after uploading media was partially cut off. Adjust margin and padding to ensure the outline is visible, while also supporting appropriate word wrapping on long file names.

Props dilipbheda, karthikeya01, sabernhardt, narenin, zunaid321, Marius84, ankitkumarshah, riddhidave, dilip2615, SirLouen, Presskopp, joedolson.
Fixes #63239.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/async-upload.php

    r60520 r60637  
    6161                    ?>
    6262                    <div class="filename new">
    63                         <span class="media-list-title"><strong><?php echo esc_html( wp_html_excerpt( $title, 60, '&hellip;' ) ); ?></strong></span>
    64                         <span class="media-list-subtitle"><?php echo esc_html( wp_basename( $file ) ); ?></span>
     63                        <span class="media-list-title word-wrap-break-word"><strong><?php echo esc_html( wp_html_excerpt( $title, 60, '&hellip;' ) ); ?></strong></span>
     64                        <span class="media-list-subtitle word-wrap-break-word"><?php echo esc_html( wp_basename( $file ) ); ?></span>
    6565                        <div class="attachment-tools">
    6666                            <?php
Note: See TracChangeset for help on using the changeset viewer.