Accessibility Improvements (#467)

* accessibility improvements

* fix listen icon
This commit is contained in:
ChunkyProgrammer 2021-09-21 17:58:25 -04:00 committed by GitHub
parent 4a8927c794
commit 40b74c7745
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 31 additions and 16 deletions

View file

@ -1,5 +1,5 @@
<template>
<h1 class="uk-text-bold uk-text-center">Watch History</h1>
<h1 class="uk-text-bold uk-text-center">{{ $t("titles.history") }}</h1>
<div style="text-align: right">

View file

@ -7,7 +7,8 @@
type="text"
v-model="username"
autocomplete="username"
placeholder="Username"
:placeholder="$t('login.username')"
:aria-label="$t('login.username')"
/>
</div>
<div class="uk-form-row">
@ -16,7 +17,8 @@
type="password"
v-model="password"
autocomplete="password"
placeholder="Password"
:placeholder="$t('login.password')"
:aria-label="$t('login.password')"
/>
</div>
<div class="uk-form-row">

View file

@ -19,7 +19,9 @@
<input
class="uk-input uk-width-medium"
type="text"
placeholder="Search"
role="search"
:title="$t('actions.search')"
:placeholder="$t('actions.search')"
v-model="searchText"
@keyup="onKeyUp"
@focus="onInputFocus"
@ -50,7 +52,9 @@
<input
class="uk-input"
type="text"
placeholder="Search"
role="search"
:title="$t('actions.search')"
:placeholder="$t('actions.search')"
v-model="searchText"
@keyup="onKeyUp"
@focus="onInputFocus"

View file

@ -194,7 +194,7 @@
<td>{{ instance.locations }}</td>
<td>{{ instance.cdn == "Yes" ? $t("actions.yes") : $t("actions.no") }}</td>
<td>
<a :href="sslScore(instance.apiurl)" target="_blank">Click Here</a>
<a :href="sslScore(instance.apiurl)" target="_blank"> {{ $t("actions.view_ssl_score") }}</a>
</td>
</tr>
</tbody>

View file

@ -7,7 +7,8 @@
type="text"
v-model="username"
autocomplete="username"
placeholder="Username"
:placeholder="$t('login.username')"
:aria-label="$t('login.username')"
/>
</div>
<div class="uk-form-row">
@ -16,7 +17,8 @@
type="password"
v-model="password"
autocomplete="password"
placeholder="Password"
:placeholder="$t('login.password')"
:aria-label="$t('login.password')"
/>
</div>
<div class="uk-form-row">

View file

@ -3,7 +3,7 @@
{{ $route.query.search_query }}
</h1>
<label for="ddlSearchFilters"><b>Filter: </b></label>
<label for="ddlSearchFilters"><b>{{ $t("actions.filter") }}: </b></label>
<select
id="ddlSearchFilters"
default="all"

View file

@ -6,7 +6,7 @@
:width="width"
style="width: 100%"
v-bind:src="video.thumbnail"
alt="thumbnail"
alt=""
loading="lazy"
/>
<div class="uk-position-relative">
@ -30,14 +30,14 @@
</router-link>
<div class="uk-align-right" style="margin-left: 0; margin-bottom: 0; display: inline-block; width: 10%">
<router-link :to="video.url + '&listen=1'">
<router-link :to="video.url + '&listen=1'" :aria-label="'listen to '+video.title" :title="'listen to '+video.title">
<font-awesome-icon icon="headphones"></font-awesome-icon>
</router-link>
</div>
<div v-if="video.uploaderUrl && video.uploaderName && !hideChannel" style="display: flex; flex-flow: row; height: 15%">
<router-link class="uk-link-muted" :to="video.uploaderUrl">
<img v-if="video.uploaderAvatar" :src="video.uploaderAvatar" loading="lazy" class="uk-border-circle" style="margin-right: 0.5rem; margin-top:0.5rem; width: 32px; height: 32px;" />
<img v-if="video.uploaderAvatar" :src="video.uploaderAvatar" loading="lazy" :alt="video.uploaderName" class="uk-border-circle" style="margin-right: 0.5rem; margin-top:0.5rem; width: 32px; height: 32px;" />
</router-link>
<div>

View file

@ -1,8 +1,7 @@
<template>
<div>Loading...</div>
<div>{{ $t("actions.loading") }}</div>
</template>
<script>
export default {
activated() {

View file

@ -56,7 +56,7 @@
</div>
<div class="uk-flex uk-flex-middle uk-margin-small-top">
<img :src="video.uploaderAvatar" loading="lazy" class="uk-border-circle" />
<img :src="video.uploaderAvatar" alt="" loading="lazy" class="uk-border-circle" />
<router-link class="uk-link uk-margin-small-left" v-if="video.uploaderUrl" :to="video.uploaderUrl">
{{ video.uploader }} </router-link
>&thinsp;<font-awesome-icon v-if="video.uploaderVerified" icon="check"></font-awesome-icon>

View file

@ -58,7 +58,11 @@
"minimize_description": "Minimize Description",
"show_description": "Show Description",
"disable_lbry": "Disable LBRY for Streaming",
"enable_lbry_proxy": "Enable Proxy for LBRY"
"enable_lbry_proxy": "Enable Proxy for LBRY",
"view_ssl_score": "View SSL Score",
"search": "Search",
"filter": "Filter",
"loading": "Loading..."
},
"comment": {
"pinned_by": "Pinned by"
@ -69,6 +73,10 @@
"has_cdn":"Has CDN?",
"ssl_score":"SSL Score"
},
"login": {
"username":"Username",
"password":"Password"
},
"video": {
"videos": "Videos",
"views": "views",