Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
feat(ais-hierarchical-menu): add css class for link of selected menu …
Browse files Browse the repository at this point in the history
…item
  • Loading branch information
dhayab committed Sep 30, 2022
1 parent badf815 commit acc6ed3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/components/HierarchicalMenuList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
>
<a
:href="createURL(item.value)"
:class="suit('link')"
:class="[
suit('link'),
item.isRefined && suit('link', 'selected')
]"
@click.prevent="refine(item.value)"
>
<span :class="suit('label')">{{ item.label }}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ exports[`default render renders correctly a sub categories selected 1`] = `
<div class="ais-HierarchicalMenu">
<ul class="ais-HierarchicalMenu-list ais-HierarchicalMenu-list--lvl0">
<li class="ais-HierarchicalMenu-item ais-HierarchicalMenu-item--parent ais-HierarchicalMenu-item--selected">
<a class="ais-HierarchicalMenu-link">
<a class="ais-HierarchicalMenu-link ais-HierarchicalMenu-link--selected">
<span class="ais-HierarchicalMenu-label">
Apple
</span>
Expand Down Expand Up @@ -761,7 +761,7 @@ exports[`default render renders correctly a sub categories selected 1`] = `
</a>
</li>
<li class="ais-HierarchicalMenu-item ais-HierarchicalMenu-item--parent ais-HierarchicalMenu-item--selected">
<a class="ais-HierarchicalMenu-link">
<a class="ais-HierarchicalMenu-link ais-HierarchicalMenu-link--selected">
<span class="ais-HierarchicalMenu-label">
MacBook
</span>
Expand Down

0 comments on commit acc6ed3

Please sign in to comment.