Skip to content

Commit

Permalink
fix: due to document selection the document navigation had to be rebu…
Browse files Browse the repository at this point in the history
…ilt using divs instead of links which broke the linter
  • Loading branch information
StephanH90 authored and czosel committed Sep 17, 2021
1 parent 201529d commit d391bb1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 2 additions & 3 deletions addon/components/category-nav/category.hbs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<li class="category-nav--category" ...attributes>
<a
<div
class="uk-link-reset {{if @selected "active"}}"
role="button"
href=""
data-test-link
{{on "click" this.loadCategory}}
>
Expand All @@ -20,5 +19,5 @@
{{@category.name}}
</div>
</div>
</a>
</div>
</li>
4 changes: 3 additions & 1 deletion app/styles/components/category-nav/_category.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
background: uikit.$background-default-background;
}

.uk-nav .category-nav--category a {
.uk-nav .category-nav--category > div {
transition: background uikit.$animation-duration,
box-shadow uikit.$animation-duration, color uikit.$animation-duration;
padding: 10px 0 10px 50px;

cursor: pointer;

&.active {
@include active;
}
Expand Down

0 comments on commit d391bb1

Please sign in to comment.