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 committed May 15, 2024
1 parent bfb4965 commit 1f2719a
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 @@ -117,7 +117,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 1f2719a

Please sign in to comment.