Make WordPress Core

Changeset 63554


Ignore:
Timestamp:
09/09/2026 10:33:28 AM (2 months ago)
Author:
tyxla
Message:

Toolbar: Prevent the site title from showing behind the site icon on narrow screens.

Below 783px the Admin Bar hides each node's text label with text-indent, which
has no effect on the site name node because setting a site icon makes it a flex
container. Depending on the browser engine, the title then renders unindented
and clipped, with the absolutely positioned icon drawn on top of it.

Reset the node to a block container within the max-width: 782px media query.
Flex serves no purpose there, as the icon is taken out of flow anyway.

Developed in: ​https://github.com/WordPress/wordpress-develop/pull/13434

Props hbhalodia, jdab, audrasjb, adamsilverstein, fushar, tyxla.

Fixes #66064.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/css/admin-bar.css

    r63552 r63554  
    935935        }
    936936
     937        /*
     938         * Flex prevents `text-indent` from hiding the site title, and is unused here
     939         * since the icon is positioned absolutely below.
     940         */
     941        #wpadminbar #wp-admin-bar-site-name.has-site-icon > .ab-item {
     942                display: block;
     943        }
     944
    937945        #wpadminbar #wp-admin-bar-site-name > .ab-item .site-icon {
    938946                position: absolute;
Note: See TracChangeset for help on using the changeset viewer.