Make WordPress Core

Changeset 44370 for trunk


Ignore:
Timestamp:
12/28/2018 08:14:26 PM (8 years ago)
Author:
laurelfulford
Message:

Twenty Nineteen: Fix hover appearance for outlined button block style.

The outlined button block style was displaying white text on a white background on hover. This update makes sure the text remains legible on hover when this button style is applied.

Props rickalee, kjellr.
Fixes #45726.

Location:
trunk/src/wp-content/themes/twentynineteen
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss

    r44305 r44370  
    216216                        color: white;
    217217                        border-color: $color__background-button-hover;
     218                        &:not(.has-background) {
     219                                color: $color__background-button-hover;
     220                        }
    218221                }
    219222        }
  • trunk/src/wp-content/themes/twentynineteen/style-rtl.css

    r44369 r44370  
    36653665}
    36663666
     3667.entry .entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover:not(.has-background) {
     3668  color: #111;
     3669}
     3670
    36673671.entry .entry-content .wp-block-archives,
    36683672.entry .entry-content .wp-block-categories,
  • trunk/src/wp-content/themes/twentynineteen/style.css

    r44369 r44370  
    36773677}
    36783678
     3679.entry .entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover:not(.has-background) {
     3680  color: #111;
     3681}
     3682
    36793683.entry .entry-content .wp-block-archives,
    36803684.entry .entry-content .wp-block-categories,
Note: See TracChangeset for help on using the changeset viewer.