vue-share-buttons icon indicating copy to clipboard operation
vue-share-buttons copied to clipboard

Need to wrap each button in span?

Open spekulatius opened this issue 5 years ago • 1 comments

Hello @Alexandrshy

I tried to implement your lib in a project of mine. I've noticed, I had to wrap each button in a span to work correctly. Without, only the first button was displayed. Any idea what is causing this?

My code:

    <facebook-button
        isBlank="false"
        btnText="Post"
    />
    <twitter-button
        isBlank="false"
        btnText="Tweet"
    />
    <reddit-button
        isBlank="false"
        btnText="Post"
    />

Expected Behavior

image

Actual Behavior

image

Work around:

        <span>
          <facebook-button
            isBlank="false"
            btnText="Post"
        />
        </span>
        <span>
          <twitter-button
            isBlank="false"
            btnText="Tweet"
        />
        </span>
        <span>
          <reddit-button
            isBlank="false"
            btnText="Post"
        />
        </span>

Maybe I'm doing something wrong? While it looks pretty straight forward I'm not sure...

Cheers, Peter

spekulatius avatar Feb 09 '20 07:02 spekulatius

I would suggest putting them all under a

    <div class="flex flex-row justify-center">
         <TwitterButton
            description=""
        />
        <FacebookButton
            description="This recipe will live rent-free in your mind!"
        />
        <PinterestButton
            description="This recipe will live rent-free in your mind!"
        />
    </div>

Result Screen Shot 2022-10-05 at 8 31 14 AM

ErnestAV avatar Oct 05 '22 14:10 ErnestAV