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> <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"> <div style="text-align: right">

View File

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

View File

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

View File

@ -194,7 +194,7 @@
<td>{{ instance.locations }}</td> <td>{{ instance.locations }}</td>
<td>{{ instance.cdn == "Yes" ? $t("actions.yes") : $t("actions.no") }}</td> <td>{{ instance.cdn == "Yes" ? $t("actions.yes") : $t("actions.no") }}</td>
<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> </td>
</tr> </tr>
</tbody> </tbody>

View File

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

View File

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

View File

@ -6,7 +6,7 @@
:width="width" :width="width"
style="width: 100%" style="width: 100%"
v-bind:src="video.thumbnail" v-bind:src="video.thumbnail"
alt="thumbnail" alt=""
loading="lazy" loading="lazy"
/> />
<div class="uk-position-relative"> <div class="uk-position-relative">
@ -30,14 +30,14 @@
</router-link> </router-link>
<div class="uk-align-right" style="margin-left: 0; margin-bottom: 0; display: inline-block; width: 10%"> <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> <font-awesome-icon icon="headphones"></font-awesome-icon>
</router-link> </router-link>
</div> </div>
<div v-if="video.uploaderUrl && video.uploaderName && !hideChannel" style="display: flex; flex-flow: row; height: 15%"> <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"> <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> </router-link>
<div> <div>

View File

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

View File

@ -56,7 +56,7 @@
</div> </div>
<div class="uk-flex uk-flex-middle uk-margin-small-top"> <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"> <router-link class="uk-link uk-margin-small-left" v-if="video.uploaderUrl" :to="video.uploaderUrl">
{{ video.uploader }} </router-link {{ video.uploader }} </router-link
>&thinsp;<font-awesome-icon v-if="video.uploaderVerified" icon="check"></font-awesome-icon> >&thinsp;<font-awesome-icon v-if="video.uploaderVerified" icon="check"></font-awesome-icon>

View File

@ -58,7 +58,11 @@
"minimize_description": "Minimize Description", "minimize_description": "Minimize Description",
"show_description": "Show Description", "show_description": "Show Description",
"disable_lbry": "Disable LBRY for Streaming", "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": { "comment": {
"pinned_by": "Pinned by" "pinned_by": "Pinned by"
@ -69,6 +73,10 @@
"has_cdn":"Has CDN?", "has_cdn":"Has CDN?",
"ssl_score":"SSL Score" "ssl_score":"SSL Score"
}, },
"login": {
"username":"Username",
"password":"Password"
},
"video": { "video": {
"videos": "Videos", "videos": "Videos",
"views": "views", "views": "views",