Use role=option/aria-pressed for server list
This commit is contained in:
parent
134ede6870
commit
1d506c81ac
@ -17,7 +17,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<li :class="{'server': true, 'server--selected': selected}" role="none">
|
<li :class="{'server': true, 'server--selected': selected}" role="none">
|
||||||
<button type="button" :class="{'active': selected}"
|
<button type="button" :class="{'active': selected}"
|
||||||
role="menuitemradio" :aria-checked="selected" :title="server.label || server.id"
|
role="option" :aria-pressed="selected" :title="server.label || server.id"
|
||||||
@click="setCurrentServer(server.id)" @keydown="(e) => handleKeydown(e, server.id)">{{ server.label || server.id }}
|
@click="setCurrentServer(server.id)" @keydown="(e) => handleKeydown(e, server.id)">{{ server.label || server.id }}
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user