Skip to content

Commit

Permalink
ALTERNATIVE SOLUTION
Browse files Browse the repository at this point in the history
  • Loading branch information
ShGKme committed Oct 19, 2023
1 parent cbe883d commit 2b853f0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/NcHeaderMenu/NcHeaderMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,22 @@ export default {
:class="{ 'header-menu--opened': opened }"
class="header-menu">
<!-- Trigger -->
<button :id="isNav ? triggerId : null"
<div :id="isNav ? triggerId : null"
ref="trigger"
class="header-menu__trigger button-vue"
role="button"
tabindex="0"
:aria-label="ariaLabel"
:aria-describedby="description ? descriptionId : null"
:aria-controls="`header-menu-${id}`"
:aria-expanded="opened.toString()"
@click.prevent="toggleMenu">
@keydown.enter.stop="toggleMenu"
@keydown.space.stop="toggleMenu"
@click.stop="toggleMenu">
<!-- @slot Icon trigger slot. Make sure the svg path
is at least 16px. Usually mdi icon works at 20px -->
<slot name="trigger" />
</button>
</div>

<span v-if="description"
:id="descriptionId"
Expand Down

0 comments on commit 2b853f0

Please sign in to comment.