feat(dashboard): more screenreader friendlyness

This commit is contained in:
Draconizations
2022-05-20 13:39:30 +02:00
parent abd5a85ba1
commit 9744a3deb6
11 changed files with 103 additions and 97 deletions

View File

@@ -71,7 +71,7 @@
<Alert color="success">Group privacy updated!</Alert>
{/if}
<Label><b>Set all to:</b></Label>
<Input type="select" on:change={(e) => changeAll(e)}>
<Input type="select" on:change={(e) => changeAll(e)} aria-label="set all to">
<option>no change</option>
<option>public</option>
<option>private</option>
@@ -81,7 +81,7 @@
{#each Object.keys(privacy) as x}
<Col xs={12} lg={6} class="mb-3">
<Label>{privacyNames[x]}:</Label>
<Input type="select" bind:value={privacy[x]}>
<Input type="select" bind:value={privacy[x]} aria-label={`group ${privacyNames[x]} privacy`}>
<option default>no change</option>
<option>public</option>
<option>private</option>
@@ -90,7 +90,7 @@
{/each}
</Row>
<Button color="primary" on:click={submit} bind:disabled={loading}>
<Button color="primary" on:click={submit} bind:disabled={loading} aria-label="submit bulk group privacy">
{#if loading}
<Spinner />
{:else}

View File

@@ -73,7 +73,7 @@ import Member from './Member.svelte';
<Alert color="success">Member privacy updated!</Alert>
{/if}
<Label><b>Set all to:</b></Label>
<Input type="select" on:change={(e) => changeAll(e)}>
<Input type="select" on:change={(e) => changeAll(e)} aria-label="set all to">
<option>no change</option>
<option>public</option>
<option>private</option>
@@ -83,7 +83,7 @@ import Member from './Member.svelte';
{#each Object.keys(privacy) as x}
<Col xs={12} lg={6} class="mb-3">
<Label>{privacyNames[x]}:</Label>
<Input type="select" bind:value={privacy[x]}>
<Input type="select" bind:value={privacy[x]} aria-label={`member ${privacyNames[x]} privacy`}>
<option default>no change</option>
<option>public</option>
<option>private</option>
@@ -92,7 +92,7 @@ import Member from './Member.svelte';
{/each}
</Row>
<Button color="primary" on:click={submit} bind:disabled={loading}>
<Button color="primary" on:click={submit} bind:disabled={loading} aria-label="submit bulk member privacy">
{#if loading}
<Spinner />
{:else}