Make WordPress Core

Changeset 40418


Ignore:
Timestamp:
04/12/2017 04:11:30 PM (8 years ago)
Author:
afercia
Message:

Toolbar: Reset CSS properties that might be inherited from the active Theme.

The Toolbar search field, when the Toolbar is displayed on the frontend, might
inherit CSS properties from the active Theme stylesheet. For example, this
happened with Twenty Seventeen that sets display: block; on all the input
fields. Thus, there's the need to reset some CSS properties to avoid inheritance.

Props @sagarprajapati.
Fixes #40313.

File:
1 edited

Legend:

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

    r39533 r40418  
    625625}
    626626
     627/* The admin bar search field needs to reset many styles that might be inherited from the active Theme CSS. See ticket #40313. */
    627628#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input {
     629    display: inline-block;
     630    float: none;
    628631    position: relative;
    629632    z-index: 30;
     
    631634    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    632635    line-height: 24px;
     636    text-indent: 0;
    633637    height: 24px;
    634638    width: 24px;
Note: See TracChangeset for help on using the changeset viewer.