Skip to content

Commit

Permalink
Fixes border colors for WordPress#284
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Sep 21, 2019
1 parent dbb6b03 commit 877a8df
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ function wp_body_open() {
* Include a skip to content link at the top of the page so that users can bypass the menu.
*/
function twentytwenty_skip_link() {
echo '<a class="skip-link faux-button screen-reader-text" href="#site-content">' . __( 'Skip to the content', 'twentytwenty' ) . '</a>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- core trusts translations
echo '<a class="skip-link faux-button screen-reader-text" href="#site-content">' . __( 'Skip to the content', 'twentytwenty' ) . '</a>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- core trusts translations
}

add_action( 'wp_body_open', 'twentytwenty_skip_link', 5 );
Expand Down Expand Up @@ -676,6 +676,12 @@ function twentytwenty_get_elements_array() {
'secondary' => array(
'color' => array( 'cite', 'figcaption', '.wp-caption-text', '.post-meta', '.entry-content .wp-block-archives li', '.entry-content .wp-block-categories li', '.entry-content .wp-block-latest-posts li', '.wp-block-latest-comments__comment-date', '.wp-block-latest-posts__post-date', '.wp-block-embed figcaption', '.wp-block-image figcaption', '.wp-block-pullquote cite', '.comment-metadata', '.comment-respond .comment-notes', '.comment-respond .logged-in-as', '.pagination .dots' ),
),
'borders' => array(
'border-color' => array( 'pre', 'fieldset', 'input', 'textarea', 'table', 'th', 'td' ),
'background' => array( 'caption' ),
'border-bottom-color' => array( '.wp-block-table.is-style-stripes' ),
'border-top-color' => array( '.wp-block-latest-posts.is-grid li' ),
),
),
'header-footer' => array(
'accent' => array(
Expand Down

0 comments on commit 877a8df

Please sign in to comment.