Skip to content

Commit

Permalink
Social Icons: update Patreon icon
Browse files Browse the repository at this point in the history
Fixes WordPress#56925

Patreon's logo is changing: https://news.patreon.com/articles/patreon-reimagined
Our Social Icons logo should change too.
  • Loading branch information
jeherve committed Dec 11, 2023
1 parent d1b2abf commit 15dd5b3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions packages/block-library/src/social-link/icons/patreon.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/**
* WordPress dependencies
*/
import { Circle, Rect, SVG } from '@wordpress/primitives';
import { Path, SVG } from '@wordpress/primitives';

export const PatreonIcon = () => (
<SVG width="24" height="24" viewBox="0 0 569 546" version="1.1">
<Circle cx="363" cy="205" r="205" />
<Rect width="100" height="546" x="0" y="0" />
<SVG width="24" height="24" viewBox="0 0 24 24" version="1.1">
<Path d="M20 7.40755C19.9969 5.10922 18.2543 3.22555 16.2097 2.54588C13.6708 1.70188 10.3222 1.82421 7.89775 2.99921C4.95932 4.42355 4.03626 7.54355 4.00186 10.6552C3.97363 13.2136 4.2222 19.9517 7.92225 19.9997C10.6715 20.0356 11.0809 16.3967 12.3529 14.6442C13.258 13.3974 14.4233 13.0452 15.8578 12.6806C18.3233 12.0537 20.0036 10.0551 20 7.40755Z" />
</SVG>
);
2 changes: 1 addition & 1 deletion packages/block-library/src/social-link/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ function block_core_social_link_services( $service = '', $field = '' ) {
),
'patreon' => array(
'name' => 'Patreon',
'icon' => '<svg width="24" height="24" viewBox="0 0 569 546" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><circle cx="363" cy="205" r="205" /><rect width="100" height="546" x="0" y="0" /></svg>',
'icon' => '<svg width="24" height="24" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false"><path d="M20 7.40755C19.9969 5.10922 18.2543 3.22555 16.2097 2.54588C13.6708 1.70188 10.3222 1.82421 7.89775 2.99921C4.95932 4.42355 4.03626 7.54355 4.00186 10.6552C3.97363 13.2136 4.2222 19.9517 7.92225 19.9997C10.6715 20.0356 11.0809 16.3967 12.3529 14.6442C13.258 13.3974 14.4233 13.0452 15.8578 12.6806C18.3233 12.0537 20.0036 10.0551 20 7.40755Z"/></svg>',
),
'pinterest' => array(
'name' => 'Pinterest',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
}

.wp-social-link-patreon {
background-color: #ff424d;
background-color: #000;
color: #fff;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
}

.wp-social-link-patreon {
color: #ff424d;
color: #000;
}

.wp-social-link-pinterest {
Expand Down

0 comments on commit 15dd5b3

Please sign in to comment.