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

feat(ais-hierarchical-menu): add css class for link of selected menu item #1150

Merged
merged 1 commit into from
Oct 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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