From 50e5f7ca9e65ecf6744351f3c746c69981b83f76 Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Thu, 21 Feb 2019 16:31:50 +0100 Subject: Fix html rendering and default checkbox MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- apps/accessibility/src/App.vue | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'apps/accessibility/src/App.vue') diff --git a/apps/accessibility/src/App.vue b/apps/accessibility/src/App.vue index 892e1ae8288..2a3316e59a1 100644 --- a/apps/accessibility/src/App.vue +++ b/apps/accessibility/src/App.vue @@ -50,13 +50,28 @@ export default { }; }, description() { - return t('accessibility', 'Universal access is very important to us. We follow web standards and check to make everything usable also without mouse, and assistive software such as screenreaders. We aim to be compliant with the {guidelines} 2.1 on AA level, with the high contrast theme even on AAA level.', {guidelines: this.guidelinesLink}) + // using the `t` replace method escape html, we have to do it manually :/ + return t( + 'accessibility', + `Universal access is very important to us. We follow web standards + and check to make everything usable also without mouse, + and assistive software such as screenreaders. + We aim to be compliant with the {guidelines} 2.1 on AA level, + with the high contrast theme even on AAA level.` + ) + .replace('{guidelines}', this.guidelinesLink) }, guidelinesLink() { return `${t('accessibility', 'Web Content Accessibility Guidelines')}` }, descriptionDetail() { - return t('accessibility', 'If you find any issues, don’t hesitate to report them on {issuetracker}. And if you want to get involved, come join {designteam}!', {issuetracker: this.issuetrackerLink, designteam: this.designteamLink}) + return t( + 'accessibility', + `If you find any issues, don’t hesitate to report them on {issuetracker}. + And if you want to get involved, come join {designteam}!` + ) + .replace('{issuetracker}', this.issuetrackerLink) + .replace('{designteam}', this.designteamLink) }, issuetrackerLink() { return `${t('accessibility', 'our issue tracker')}` -- cgit v1.2.3