Problem/Motivation

Maybe related to the latest changes, it looks like the social icons in the Follow component's preview are broken.

Since we're using the social prop instead of the icon prop to define the social icon, we need at least a label - but we currently have a title slot, which does not exist:

  social:
    - type: component
      component: "ui_suite_dsfr:button"
      slots:
        title: "Follow on Facebook"
      props:
        url: "https://facebook.com"
        social: facebook

Proposed solution

Replace title slots with label slots

CommentFileSizeAuthor
ui_suite_dsfr-follow.png27.75 KBspryah
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

spryah created an issue. See original summary.

spryah’s picture

Title: Follow: social icons won't show » Follow: social icon previews won't show

spryah’s picture

I also set the Newsletter button's url as a prop since it would return a button (without any href) instead of a link

spryah’s picture

Status: Active » Needs review

  • mogtofu33 committed a652545a on 1.x authored by spryah
    fix: #3627664 Follow: social icon previews won't show
    
    By: spryah
    
mogtofu33’s picture

Status: Needs review » Fixed

Thanks for the fix.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.