From a838983c5b56d0dd0a40a95353776ac75cfc7d40 Mon Sep 17 00:00:00 2001 From: Stein Elgethun <stein.elgethun@usit.uio.no> Date: Tue, 28 Nov 2023 15:52:39 +0100 Subject: [PATCH] Add link to accessibility statement Issue: GREG-383 --- frontend/public/locales/en/footer.json | 1 + frontend/public/locales/nb/footer.json | 3 ++- frontend/public/locales/nn/footer.json | 3 ++- frontend/src/appConfig.ts | 2 ++ frontend/src/routes/components/footer.tsx | 4 ++++ 5 files changed, 11 insertions(+), 2 deletions(-) diff --git a/frontend/public/locales/en/footer.json b/frontend/public/locales/en/footer.json index dd049bd8..a33b020d 100644 --- a/frontend/public/locales/en/footer.json +++ b/frontend/public/locales/en/footer.json @@ -2,6 +2,7 @@ "applicationTitle": "Guest Service", "link": { "terms": { + "accessibilityStatement": "Accessibility statement (in Norwegian only)", "header": "TERMS", "ITRules": "IT Rules", "privacy": "Privacy Policy" diff --git a/frontend/public/locales/nb/footer.json b/frontend/public/locales/nb/footer.json index 7befbe59..33ef69e6 100644 --- a/frontend/public/locales/nb/footer.json +++ b/frontend/public/locales/nb/footer.json @@ -4,7 +4,8 @@ "terms": { "header": "VILKÅR", "ITRules": "IT-reglement", - "privacy": "Personvern" + "privacy": "Personvern", + "accessibilityStatement": "Tilgjengelighetserklæring" }, "help": { "header": "HJELP OG KONTAKT", diff --git a/frontend/public/locales/nn/footer.json b/frontend/public/locales/nn/footer.json index c377dfd6..93314803 100644 --- a/frontend/public/locales/nn/footer.json +++ b/frontend/public/locales/nn/footer.json @@ -4,7 +4,8 @@ "terms": { "header": "VILKÅR", "ITRules": "IT-reglement", - "privacy": "Personvern" + "privacy": "Personvern", + "accessibilityStatement": "Tilgjengelegheitserklæring" }, "help": { "header": "HJELP OG KONTAKT", diff --git a/frontend/src/appConfig.ts b/frontend/src/appConfig.ts index a91bab70..4d10c689 100644 --- a/frontend/src/appConfig.ts +++ b/frontend/src/appConfig.ts @@ -29,6 +29,8 @@ export const responsibleOrganizationEn: string = env.REACT_APP_RESPONSIBLE_ORGANIZATION_EN as string /* no links */ +export const accessibilityStatementLink: string = + env.REACT_APP_ACCESSIBILITY_STATEMENT_LINK as string export const itRulesLink: string = env.REACT_APP_IT_RULES_LINK as string export const privacyPolicyLink: string = env.REACT_APP_PRIVACY_POLICY_LINK as string diff --git a/frontend/src/routes/components/footer.tsx b/frontend/src/routes/components/footer.tsx index 3b04be49..ddba88e1 100644 --- a/frontend/src/routes/components/footer.tsx +++ b/frontend/src/routes/components/footer.tsx @@ -3,6 +3,7 @@ import { styled } from '@mui/material/styles' import { Link } from '@mui/material' import { + accessibilityStatementLink, appInst, responsibleOrganization, responsibleOrganizationEn, @@ -113,6 +114,9 @@ function Footer() { <StyledLink href={getPrivacyPolicyLink()}> {t('footer:link.terms.privacy')} </StyledLink> + {accessibilityStatementLink && <StyledLink href={accessibilityStatementLink}> + {t('footer:link.terms.accessibilityStatement')} + </StyledLink>} </LinkSection> <LinkSection> -- GitLab