Use role=option/aria-pressed for server list

This commit is contained in:
James Lyne 2021-05-26 15:32:02 +01:00
parent 134ede6870
commit 1d506c81ac

View File

@ -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>