From 1916c9663ac632227e60ebc93cec616b2dd6800d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 22 Dec 2020 12:05:32 +0100 Subject: Fix some accessibility issues --- .../video-comment-list.component.html | 4 ++-- .../users/user-edit/user-edit.component.html | 2 +- .../users/user-list/user-list.component.html | 4 ++-- client/src/app/+login/login.component.html | 4 ++-- .../my-account-change-password.component.html | 6 +++--- .../my-account-change-password.component.scss | 3 +-- .../+reset-password/reset-password.component.html | 4 ++-- .../+register/register-step-user.component.html | 2 +- .../+video-edit/shared/video-edit.component.html | 4 ++-- .../video-import-torrent.component.html | 5 ++++- .../video-upload.component.html | 5 ++++- .../src/app/header/search-typeahead.component.html | 5 ++++- .../shared-forms/dynamic-form-field.component.html | 2 +- .../input-toggle-hidden.component.html | 13 ++++++++++--- .../shared-forms/input-toggle-hidden.component.ts | 2 +- .../shared-forms/peertube-checkbox.component.html | 2 +- .../select/select-channel.component.html | 5 +---- .../buttons/action-dropdown.component.html | 2 +- .../shared/shared-main/feeds/feed.component.html | 3 ++- .../subscribe-button.component.html | 22 +++++++++++++--------- .../live-stream-information.component.html | 4 ++-- .../video-actions-dropdown.component.html | 4 +++- 22 files changed, 63 insertions(+), 44 deletions(-) (limited to 'client/src/app') diff --git a/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html b/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html index 8c68b0abf..fa4a8edfd 100644 --- a/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html +++ b/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html @@ -52,7 +52,7 @@ - + @@ -67,7 +67,7 @@ - + diff --git a/client/src/app/+admin/users/user-edit/user-edit.component.html b/client/src/app/+admin/users/user-edit/user-edit.component.html index e1260c123..78c92227f 100644 --- a/client/src/app/+admin/users/user-edit/user-edit.component.html +++ b/client/src/app/+admin/users/user-edit/user-edit.component.html @@ -124,7 +124,7 @@
diff --git a/client/src/app/+admin/users/user-list/user-list.component.html b/client/src/app/+admin/users/user-list/user-list.component.html index 38445cee7..b02faef5d 100644 --- a/client/src/app/+admin/users/user-list/user-list.component.html +++ b/client/src/app/+admin/users/user-list/user-list.component.html @@ -47,7 +47,7 @@ - + @@ -87,7 +87,7 @@ - + diff --git a/client/src/app/+login/login.component.html b/client/src/app/+login/login.component.html index e0be3b415..f4bb6215b 100644 --- a/client/src/app/+login/login.component.html +++ b/client/src/app/+login/login.component.html @@ -32,7 +32,7 @@
- @@ -42,7 +42,7 @@
- + diff --git a/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss index 0d1f3094a..4e3fda587 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss +++ b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss @@ -11,8 +11,7 @@ my-input-toggle-hidden { display: block; } -#new-password, -#new-confirmed-password { +my-input-toggle-hidden + my-input-toggle-hidden { margin-top: 15px; } diff --git a/client/src/app/+reset-password/reset-password.component.html b/client/src/app/+reset-password/reset-password.component.html index db9c74f89..143f426ec 100644 --- a/client/src/app/+reset-password/reset-password.component.html +++ b/client/src/app/+reset-password/reset-password.component.html @@ -6,7 +6,7 @@
- @@ -17,7 +17,7 @@
- diff --git a/client/src/app/+signup/+register/register-step-user.component.html b/client/src/app/+signup/+register/register-step-user.component.html index ac341666b..cab21c655 100644 --- a/client/src/app/+signup/+register/register-step-user.component.html +++ b/client/src/app/+signup/+register/register-step-user.component.html @@ -54,7 +54,7 @@
- diff --git a/client/src/app/+videos/+video-edit/shared/video-edit.component.html b/client/src/app/+videos/+video-edit/shared/video-edit.component.html index d75f37074..9c2aea526 100644 --- a/client/src/app/+videos/+video-edit/shared/video-edit.component.html +++ b/client/src/app/+videos/+video-edit/shared/video-edit.component.html @@ -216,12 +216,12 @@
- +
- +
⚠️ Never share your stream key with anyone.
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.html b/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.html index 785514c76..211acc6f6 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.html +++ b/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.html @@ -4,7 +4,10 @@
Select the torrent to import - +
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.html b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.html index 88ee4e32a..51e16150e 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.html +++ b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.html @@ -4,7 +4,10 @@
Select the file to upload - +
diff --git a/client/src/app/header/search-typeahead.component.html b/client/src/app/header/search-typeahead.component.html index 548da59bb..03e86b8e6 100644 --- a/client/src/app/header/search-typeahead.component.html +++ b/client/src/app/header/search-typeahead.component.html @@ -4,7 +4,10 @@ [(ngModel)]="search" (ngModelChange)="onSearchChange()" (keydown)="handleKey($event)" (keydown.enter)="doSearch()" aria-label="Search" autocomplete="off" > - +
diff --git a/client/src/app/shared/shared-forms/dynamic-form-field.component.html b/client/src/app/shared/shared-forms/dynamic-form-field.component.html index 658d8ce5b..cb82ad752 100644 --- a/client/src/app/shared/shared-forms/dynamic-form-field.component.html +++ b/client/src/app/shared/shared-forms/dynamic-form-field.component.html @@ -5,7 +5,7 @@ - + diff --git a/client/src/app/shared/shared-forms/input-toggle-hidden.component.html b/client/src/app/shared/shared-forms/input-toggle-hidden.component.html index af7c6650f..e7441e4c1 100644 --- a/client/src/app/shared/shared-forms/input-toggle-hidden.component.html +++ b/client/src/app/shared/shared-forms/input-toggle-hidden.component.html @@ -1,12 +1,19 @@
- +
-
diff --git a/client/src/app/shared/shared-forms/input-toggle-hidden.component.ts b/client/src/app/shared/shared-forms/input-toggle-hidden.component.ts index 56e5b9762..e03353fe1 100644 --- a/client/src/app/shared/shared-forms/input-toggle-hidden.component.ts +++ b/client/src/app/shared/shared-forms/input-toggle-hidden.component.ts @@ -15,7 +15,7 @@ import { Notifier } from '@app/core' ] }) export class InputToggleHiddenComponent implements ControlValueAccessor { - @Input() id = Math.random().toString(11).slice(2, 8) // id cannot be left empty or undefined + @Input() inputId = Math.random().toString(11).slice(2, 8) // id cannot be left empty or undefined @Input() value = '' @Input() autocomplete = 'off' @Input() placeholder = '' diff --git a/client/src/app/shared/shared-forms/peertube-checkbox.component.html b/client/src/app/shared/shared-forms/peertube-checkbox.component.html index 704f3e696..9d0402224 100644 --- a/client/src/app/shared/shared-forms/peertube-checkbox.component.html +++ b/client/src/app/shared/shared-forms/peertube-checkbox.component.html @@ -8,7 +8,7 @@ [id]="inputName" [disabled]="disabled" /> - + {{ labelText }} - + {{ channel.label }} diff --git a/client/src/app/shared/shared-main/buttons/action-dropdown.component.html b/client/src/app/shared/shared-main/buttons/action-dropdown.component.html index 8b363b351..d0487f0b8 100644 --- a/client/src/app/shared/shared-main/buttons/action-dropdown.component.html +++ b/client/src/app/shared/shared-main/buttons/action-dropdown.component.html @@ -1,7 +1,7 @@