Skip to content

Commit

Permalink
storefront focus and header
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsnes committed Jun 24, 2024
1 parent d69f314 commit 0c717e8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
1 change: 0 additions & 1 deletion apps/storefront/components/Footer/Footer.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
padding: 0 var(--ds-spacing-5);
margin-top: var(--ds-spacing-7);
border-radius: 2px;
transition: 0.1s all;
color: var(--color-text-on_inverted-subtle);
border: 1px dashed var(--color-text-on_inverted-subtle);
}
Expand Down
6 changes: 5 additions & 1 deletion apps/storefront/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ const Footer = () => {
</div>
<NextLink
href='mailto:[email protected]'
className={cl(classes.button, 'ds-paragraph-short--sm')}
className={cl(
classes.button,
'ds-paragraph-short--sm',
'ds-focus',
)}
>
Din etat? Ta kontakt!
</NextLink>
Expand Down
5 changes: 3 additions & 2 deletions apps/storefront/components/Header/Header.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@
text-decoration: none;
border-bottom: 3px solid transparent;
padding-bottom: var(--ds-spacing-2);
transition: 0.1s all ease-out;
transition: 0.1s border-color ease-out;
}

.link:hover {
.link:hover,
.link:focus-visible {
border-color: var(--ds-color-neutral-border-subtle);
}

Expand Down
4 changes: 3 additions & 1 deletion apps/storefront/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,15 @@ const Header = () => {
key={index}
>
<Link
suppressHydrationWarning
href={item.url}
onClick={() => setOpen(false)}
prefetch={false}
className={cl(
href === item.url ? classes.active : '',
item.url.includes(href) && classes.active,
classes.link,
'ds-paragraph--md',
'ds-focus',
)}
>
{item.name}
Expand Down

0 comments on commit 0c717e8

Please sign in to comment.