diff --git a/components/ContactCard/ContactCard.module.scss b/components/ContactCard/ContactCard.module.scss index e803110d..d272f180 100644 --- a/components/ContactCard/ContactCard.module.scss +++ b/components/ContactCard/ContactCard.module.scss @@ -64,6 +64,9 @@ } .linkText { + @include text-label; + @include link-primary; + overflow: hidden; text-overflow: ellipsis; white-space: nowrap; diff --git a/components/ContactCard/ContactCard.tsx b/components/ContactCard/ContactCard.tsx index 0c675902..37e5f31b 100644 --- a/components/ContactCard/ContactCard.tsx +++ b/components/ContactCard/ContactCard.tsx @@ -94,6 +94,9 @@ function ContactCard({ className, contactInfo, layout, renderAvatar, showAvatar, {website && isCard && ( + + {website.toString().replace(/(^\w+:|^)\/\//, '')} + )} {facebook && ( @@ -103,6 +106,7 @@ function ContactCard({ className, contactInfo, layout, renderAvatar, showAvatar, title="Facebook" > + {facebook} )} {twitter && ( @@ -112,6 +116,7 @@ function ContactCard({ className, contactInfo, layout, renderAvatar, showAvatar, title="Twitter" > + {`@${twitter}`} )}