WordPress.org

Make WordPress Core

Changeset 47933


Ignore:
Timestamp:
06/09/2020 01:50:38 PM (4 months ago)
Author:
ianbelanger
Message:

Bundled Themes: Twenty Twenty uses overly specific selector for button background.

Fixes the issue by removing :not(.toogle) from the button selector, as it is not needed.

Props flixos90.
Fixes #50271.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/functions.php

    r47618 r47933  
    702702                'color'            => array( '.color-accent', '.color-accent-hover:hover', '.color-accent-hover:focus', ':root .has-accent-color', '.has-drop-cap:not(:focus):first-letter', '.wp-block-button.is-style-outline', 'a' ),
    703703                'border-color'     => array( 'blockquote', '.border-color-accent', '.border-color-accent-hover:hover', '.border-color-accent-hover:focus' ),
    704                 'background-color' => array( 'button:not(.toggle)', '.button', '.faux-button', '.wp-block-button__link', '.wp-block-file .wp-block-file__button', 'input[type="button"]', 'input[type="reset"]', 'input[type="submit"]', '.bg-accent', '.bg-accent-hover:hover', '.bg-accent-hover:focus', ':root .has-accent-background-color', '.comment-reply-link' ),
     704                'background-color' => array( 'button', '.button', '.faux-button', '.wp-block-button__link', '.wp-block-file .wp-block-file__button', 'input[type="button"]', 'input[type="reset"]', 'input[type="submit"]', '.bg-accent', '.bg-accent-hover:hover', '.bg-accent-hover:focus', ':root .has-accent-background-color', '.comment-reply-link' ),
    705705                'fill'             => array( '.fill-children-accent', '.fill-children-accent *' ),
    706706            ),
Note: See TracChangeset for help on using the changeset viewer.