Fix tabbing over section headings
This commit is contained in:
parent
21fcaad36d
commit
88b27490cb
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<section :class="{'sidebar__section': true, 'section--collapsed': collapsed}">
|
||||
<button :id="`${name}-heading`" type="button" class="section__heading"
|
||||
@click.prevent="toggle" @keydown.prevent="handleKeydown" :title="title"
|
||||
@click.prevent="toggle" @keydown="handleKeydown" :title="title"
|
||||
:aria-expanded="!collapsed" :aria-controls="`${name}-content`">
|
||||
<slot name="heading"></slot>
|
||||
</button>
|
||||
@ -42,6 +42,8 @@
|
||||
return;
|
||||
}
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
this.toggle();
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user