Skip to content

Commit

Permalink
Don't add 'wp-social-link-undefined' class
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored and getdave committed Aug 28, 2024
1 parent 37f3bad commit 4003a7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/social-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ const SocialLinkEdit = ( {
iconBackgroundColor,
iconBackgroundColorValue,
} = context;
const classes = clsx( 'wp-social-link', 'wp-social-link-' + service, {
const classes = clsx( 'wp-social-link', {
[ `wp-social-link-${ service }` ]: !! service,
'wp-social-link__is-incomplete': ! url,
[ `has-${ iconColor }-color` ]: iconColor,
[ `has-${ iconBackgroundColor }-background-color` ]:
Expand Down

0 comments on commit 4003a7d

Please sign in to comment.