Skip to content

Commit

Permalink
fix footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsnes committed Jul 4, 2024
1 parent 9d0232e commit d1e2222
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
8 changes: 8 additions & 0 deletions apps/storefront/components/Footer/Footer.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@
margin-bottom: 0;
}

.link {
gap: var(--ds-spacing-2);
}

.link:visited {
--dsc-link-color: var(--ds-color-neutral-text-default);
}

.top {
padding: var(--ds-spacing-18) 0;
}
Expand Down
3 changes: 2 additions & 1 deletion apps/storefront/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ const LinkList = (links: LinkListItemProps[]) => {
<Link
href={item.url}
color='neutral'
className={classes.link}
>
{item.prefix}
{item.text}
Expand Down Expand Up @@ -166,7 +167,7 @@ const Footer = () => {
</div>
<div className={cl(classes.bottom, 'ds-paragraph--sm')}>
<Container>
<Paragraph>© {getCurrentYear()} Designsystemet</Paragraph>
<Paragraph size='sm'>© {getCurrentYear()} Designsystemet</Paragraph>
</Container>
</div>
</footer>
Expand Down
12 changes: 8 additions & 4 deletions packages/css/link.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@
}

.ds-link:visited {
color: var(--dsc-link-color-visited);
--dsc-link-color: var(--dsc-link-color-visited);

text-decoration: none;
}

.ds-link:hover {
color: var(--dsc-link-color-hover);
--dsc-link-color: var(--dsc-link-color-hover);

text-decoration-thickness: max(2px, 0.125rem, 0.12em);
}

Expand All @@ -51,8 +53,10 @@
}

.ds-link:active {
color: var(--dsc-link-color-active);
background: var(--dsc-link-color-active-background);
--dsc-link-color: var(--dsc-link-color-active);
--dsc-link-color-active-background: var(--dsc-link-color-active-background);

background-color: var(--dsc-link-color-active-background);
border-radius: min(0.25rem, var(--ds-border-radius-md));
outline: none;
}

0 comments on commit d1e2222

Please sign in to comment.