Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

GalleryCard.Image target '_blank' doesn't work #517

Open

Description

@sergibc

Having the following:
<GalleryCard.Image src={imageFile} href="destionation_url" target="_blank" />

The "destination_url" is opened in the same page.

Activity

  1. dannypaz commented on Jun 23, 2020

    @dannypaz

    @sergibc target needs to be added to the component https://github.com/tabler/tabler-react/blob/master/src/components/GalleryCard/GalleryCardImage.react.js

    As a workaround, I have wrapped the GalleyCard in an <a> and removed styling of the <a> tag.

    <a href={v} target="_blank">
      <GalleryCard className="w-1/5">
        <GalleryCard.Image src={v} />
      </GalleryCard>
    </a>
    

    Hope this helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions