Skip to content

Commit

Permalink
Merge pull request #942 from prezly/feature/dev-19087-lena-theme-miss…
Browse files Browse the repository at this point in the history
…ing-website-links-in-contact-cards

[DEV-19087] Fix - Lena theme - missing website links in contact cards
  • Loading branch information
fgyimah authored Feb 3, 2025
2 parents 5e3c694 + eaab944 commit 7f4fa9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions components/ContactCard/ContactCard.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@
align-items: center;
gap: $spacing-1;
overflow: hidden;

.linkGroup.social & {
color: $color-base-600;
}
}

.linkText {
Expand Down
5 changes: 5 additions & 0 deletions components/ContactCard/ContactCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ function ContactCard({ className, contactInfo, layout, renderAvatar, showAvatar,
{website && isCard && (
<a href={website.toString()} className={styles.link} title="Website">
<IconGlobe width={16} height={16} className={styles.icon} />
<span className={styles.linkText}>
{website.toString().replace(/(^\w+:|^)\/\//, '')}
</span>
</a>
)}
{facebook && (
Expand All @@ -103,6 +106,7 @@ function ContactCard({ className, contactInfo, layout, renderAvatar, showAvatar,
title="Facebook"
>
<IconFacebook width={16} height={16} className={styles.icon} />
<span className={styles.linkText}>{facebook}</span>
</a>
)}
{twitter && (
Expand All @@ -112,6 +116,7 @@ function ContactCard({ className, contactInfo, layout, renderAvatar, showAvatar,
title="Twitter"
>
<IconTwitter width={16} height={16} className={styles.icon} />
<span className={styles.linkText}>{`@${twitter}`}</span>
</a>
)}
</div>
Expand Down

0 comments on commit 7f4fa9f

Please sign in to comment.