Make WordPress Core

Changeset 56447


Ignore:
Timestamp:
08/24/2023 03:32:09 PM (11 months ago)
Author:
peterwilsoncc
Message:

Bundled Theme: Twenty Nineteen: Improve social media icon dimension attributes.

Set the default width and height attributes of the SVG social icons to match the dimensions used within the CSS. This increases the attributes to 32px x 32 px.

Props crunnells, mukesh27, laurelfulford, tahmidulkarim, jordanpak.
Fixes #45950.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/inc/icon-functions.php

    r48103 r56447  
    4141    // Change SVG icon inside social links menu if there is supported URL.
    4242    if ( 'social' === $args->theme_location ) {
    43         $svg = twentynineteen_get_social_link_svg( $item->url, 26 );
     43        $svg = twentynineteen_get_social_link_svg( $item->url, 32 );
    4444        if ( empty( $svg ) ) {
    4545            $svg = twentynineteen_get_icon_svg( 'link' );
Note: See TracChangeset for help on using the changeset viewer.