Making WordPress.org

Changeset 7972


Ignore:
Timestamp:
12/11/2018 01:04:04 AM (7 years ago)
Author:
dd32
Message:

Gutenberg Theme: Override the CSS 'color' on a:visited for the download button.

This fixes a case where the button ended up as dark text on blue background.

See https://github.com/WordPress/gutenberg/issues/12772

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/gutenfront-content.php

    r7922 r7972  
    2626
    2727$content .= '<!-- wp:wporg/download-button -->
    28 <div class="wp-block-wporg-download-button wp-block-button aligncenter"><a class="wp-block-button__link has-background has-strong-blue-background-color" href="' . "https://{$localised_domain}/plugins/gutenberg/" . '" style="background-color:rgb(0,115,170)">' . esc_html__( 'Download Gutenberg Today', 'wporg' ) . '</a></div>
     28<div class="wp-block-wporg-download-button wp-block-button aligncenter"><a class="wp-block-button__link has-background has-strong-blue-background-color" href="' . "https://{$localised_domain}/plugins/gutenberg/" . '" style="background-color:rgb(0,115,170);color:#fff">' . esc_html__( 'Download Gutenberg Today', 'wporg' ) . '</a></div>
    2929<!-- /wp:wporg/download-button -->' . "\n\n";
    3030
     
    145145
    146146$content .= '<!-- wp:wporg/download-button -->
    147 <div class="wp-block-wporg-download-button wp-block-button aligncenter"><a class="wp-block-button__link has-background has-strong-blue-background-color" href="' . "https://{$localised_domain}/plugins/gutenberg/" . '" style="background-color:rgb(0,115,170)">' . esc_html__( 'Download Gutenberg Today', 'wporg' ) . '</a></div>
     147<div class="wp-block-wporg-download-button wp-block-button aligncenter"><a class="wp-block-button__link has-background has-strong-blue-background-color" href="' . "https://{$localised_domain}/plugins/gutenberg/" . '" style="background-color:rgb(0,115,170);color:#fff">' . esc_html__( 'Download Gutenberg Today', 'wporg' ) . '</a></div>
    148148<!-- /wp:wporg/download-button -->' . "\n\n";
    149149
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/js/button-readonly.js

    r7559 r7972  
    3535
    3636        return el(
    37             'div', 
     37            'div',
    3838            { className: 'wp-block-button align' + props.attributes.align, },
    3939            el(
    4040                'a',
    4141                { className: 'wp-block-button__link has-background has-strong-blue-background-color', href: props.attributes.url,
    42                     style: { backgroundColor: 'rgb(0,115,170)' },
    43                     title: props.attributes.title 
     42                    style: { backgroundColor: 'rgb(0,115,170)', color: '#fff' },
     43                    title: props.attributes.title
    4444                },
    4545                props.attributes.text
    46             ) 
     46            )
    4747        );
    4848    },
     
    5151
    5252        return el(
    53             'div', 
     53            'div',
    5454            { className: 'wp-block-button align' + props.attributes.align },
    5555            el(
    5656                'a',
    5757                { className: 'wp-block-button__link has-background has-strong-blue-background-color', href: props.attributes.url,
    58                     style: { backgroundColor: 'rgb(0,115,170)' },
    59                     title: props.attributes.title 
     58                    style: { backgroundColor: 'rgb(0,115,170)', color: '#fff' },
     59                    title: props.attributes.title
    6060                },
    6161                props.attributes.text
    62             ) 
     62            )
    6363        );
    6464    },
Note: See TracChangeset for help on using the changeset viewer.