Skip to content

Commit

Permalink
Refactor advanced search button to an anchor element.
Browse files Browse the repository at this point in the history
  • Loading branch information
clausbruun committed May 30, 2024
1 parent 47a59fa commit a9b5e38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 7 additions & 2 deletions src/stories/Blocks/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,13 @@ export const Header = (props: HeaderProps) => {
{isDropdownOpen && (
<div className="header__menu-dropdown">
<ul>
<li className="header__menu-dropdown-item">
Avanceret søgning
<li>
<a
className="header__menu-dropdown-item hide-linkstyle"
href="/advanced-search"
>
Avanceret søgning
</a>
</li>
</ul>
</div>
Expand Down
3 changes: 1 addition & 2 deletions src/stories/Blocks/header/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,8 @@
}

.header__menu-dropdown-item {
width: 100%;
padding: $s-xs $s-2xl;
cursor: pointer;
line-height: 2em;

&:hover {
background-color: $color__global-secondary;
Expand Down

0 comments on commit a9b5e38

Please sign in to comment.