Skip to content

Commit

Permalink
Taking out padding top and normalizing psuedo states.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdyoung3 committed Feb 15, 2024
1 parent 3dee4bf commit b795b50
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/components/patterns/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,10 @@ export const DrupalActionLink = ({href, children, ...props}: PropsWithChildren<{
<Link
href={href}
{...props}
className="pt-10"
className={twMerge("relative pr-30 no-underline rs-mt-neg1 hocus:bg-black-10 hocus:underline hocus:su-dark-brick active:text-cardinal-red", props.className)}
>
<span className={twMerge("relative pr-30 no-underline rs-mt-neg1 hover:bg-black-10 hover:text-brick hocus:underline focus:text-brick active:text-brick", props.className)}
>
{children}
<ChevronRightIcon className="inline absolute top-0 right-0 h-full "/>
</span>

{children}
<ChevronRightIcon className="inline absolute top-0 right-0 h-full"/>
</Link>
)
}
Expand All @@ -64,6 +60,7 @@ interface DrupalLinkProps extends PropsWithChildren<any> {


export const DrupalLink = ({url, title, style, children, ...props}: DrupalLinkProps) => {
console.log(url);
if (!url) {
return null;
}
Expand Down

0 comments on commit b795b50

Please sign in to comment.