Fix aria-controls on collapse button

Fixes #2389
This commit is contained in:
Pavel Djundik 2018-04-29 15:20:06 +03:00
parent 2da5920bda
commit 38f3557e0b
2 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,7 @@
aria-selected="false"
>
{{#equal type "lobby"}}
<button class="collapse-network" aria-label="Collapse" aria-controls="network-{{id}}" aria-expanded="true">
<button class="collapse-network" aria-label="Collapse" aria-controls="network-{{../uuid}}" aria-expanded="true">
<span class="collapse-network-icon"></span>
</button>
<div class="lobby-wrap">

View File

@ -1,6 +1,7 @@
{{#each networks}}
<section
class="network name-{{slugify name}} {{#if serverOptions.NETWORK}}network-{{slugify serverOptions.NETWORK}}{{/if}} {{#unless status.connected}}not-connected{{/unless}} {{#unless status.secure}}not-secure{{/unless}}"
id="network-{{uuid}}"
data-uuid="{{uuid}}"
data-nick="{{nick}}"
data-options="{{tojson serverOptions}}"