Skip to content

Commit a8ac4f2

Browse files
committed
Merge branch 'accessibility-settings-7.6' into accessibility-settings-8_x
# Conflicts: # src/app/accessibility/accessibility-settings.service.ts
2 parents 957d4bc + 122d31b commit a8ac4f2

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

src/app/accessibility/accessibility-settings.service.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {
22
Inject,
33
Injectable,
4+
Optional,
45
} from '@angular/core';
56
import cloneDeep from 'lodash/cloneDeep';
67
import {
@@ -88,7 +89,7 @@ export class AccessibilitySettingsService {
8889
protected cookieService: CookieService,
8990
protected authService: AuthService,
9091
protected ePersonService: EPersonDataService,
91-
protected klaroService: KlaroService,
92+
@Optional() protected klaroService: KlaroService,
9293
@Inject(APP_CONFIG) protected appConfig: AppConfig,
9394
) {
9495
}
@@ -242,6 +243,10 @@ export class AccessibilitySettingsService {
242243
* Emits 'failed' when setting in a cookie failed due to the cookie not being accepted, 'cookie' when it succeeded.
243244
*/
244245
setSettingsInCookie(settings: AccessibilitySettings): Observable<'cookie' | 'failed'> {
246+
if (hasNoValue(this.klaroService)) {
247+
return of('failed');
248+
}
249+
245250
return this.klaroService.getSavedPreferences().pipe(
246251
map(preferences => preferences.accessibility),
247252
map((accessibilityCookieAccepted: boolean) => {

src/app/footer/footer.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ <h5 class="text-uppercase">Footer Content</h5>
6868
{{ 'footer.link.cookies' | translate}}
6969
</button>
7070
</li>
71+
<li>
72+
<a class="text-white"
73+
routerLink="info/accessibility">{{ 'footer.link.accessibility' | translate }}</a>
74+
</li>
7175
<li *ngIf="showPrivacyPolicy">
7276
<a class="btn text-white"
7377
routerLink="info/privacy">{{ 'footer.link.privacy-policy' | translate}}</a>
@@ -80,10 +84,6 @@ <h5 class="text-uppercase">Footer Content</h5>
8084
<a class="btn text-white"
8185
routerLink="info/feedback">{{ 'footer.link.feedback' | translate}}</a>
8286
</li>
83-
<li>
84-
<a class="text-white"
85-
routerLink="info/accessibility">{{ 'footer.link.accessibility' | translate }}</a>
86-
</li>
8787
</ul>
8888
</div>
8989
<div *ngIf="coarLdnEnabled$ | async" class="notify-enabled text-white">

src/assets/i18n/en.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2152,7 +2152,7 @@
21522152

21532153
"info.accessibility-settings.liveRegionTimeOut.label": "ARIA Live region time out (in seconds)",
21542154

2155-
"info.accessibility-settings.liveRegionTimeOut.hint": "The duration after which a message in the ARIA live region disappears. ARIA live regions are not visible on the page, but proivde announcements of notifications (or other actions) to screen readers.",
2155+
"info.accessibility-settings.liveRegionTimeOut.hint": "The duration after which a message in the ARIA live region disappears. ARIA live regions are not visible on the page, but provide announcements of notifications (or other actions) to screen readers.",
21562156

21572157
"info.accessibility-settings.liveRegionTimeOut.invalid": "Live region time out must be greater than 0",
21582158

0 commit comments

Comments
 (0)