Label radiogroups

This commit is contained in:
James Lyne 2021-05-28 14:41:24 +01:00
parent a91944a75f
commit af843cb536
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@
<CollapsibleSection name="players"> <CollapsibleSection name="players">
<template v-slot:heading>{{ heading }} [{{ players.size }}/{{ maxPlayers }}]</template> <template v-slot:heading>{{ heading }} [{{ players.size }}/{{ maxPlayers }}]</template>
<template v-slot:default> <template v-slot:default>
<RadioList class="section__content" v-if="players.size"> <RadioList class="section__content" v-if="players.size" aria-labelledby="players-heading">
<PlayerListItem v-for="[account, player] in players" :key="account" :player="player"></PlayerListItem> <PlayerListItem v-for="[account, player] in players" :key="account" :player="player"></PlayerListItem>
</RadioList> </RadioList>
<div v-else class="section__skeleton">{{ skeletonPlayers }}</div> <div v-else class="section__skeleton">{{ skeletonPlayers }}</div>

View File

@ -18,7 +18,7 @@
<CollapsibleSection name="maps"> <CollapsibleSection name="maps">
<template v-slot:heading>{{ heading }}</template> <template v-slot:heading>{{ heading }}</template>
<template v-slot:default> <template v-slot:default>
<RadioList v-if="worlds.size" class="section__content"> <RadioList v-if="worlds.size" class="section__content" aria-labelledby="maps-heading">
<WorldListItem :world="world" v-for="[name, world] in worlds" :key="`${prefix}_${currentServer.id}_${name}`"></WorldListItem> <WorldListItem :world="world" v-for="[name, world] in worlds" :key="`${prefix}_${currentServer.id}_${name}`"></WorldListItem>
</RadioList> </RadioList>
<div v-else class="section__skeleton">{{ skeletonWorlds }}</div> <div v-else class="section__skeleton">{{ skeletonWorlds }}</div>