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