Fix html rendering and default checkbox
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
0816123f67
commit
50e5f7ca9e
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -50,13 +50,28 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
description() {
|
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() {
|
guidelinesLink() {
|
||||||
return `<a target="_blank" href="https://www.w3.org/WAI/standards-guidelines/wcag/" rel="noreferrer nofollow">${t('accessibility', 'Web Content Accessibility Guidelines')}</a>`
|
return `<a target="_blank" href="https://www.w3.org/WAI/standards-guidelines/wcag/" rel="noreferrer nofollow">${t('accessibility', 'Web Content Accessibility Guidelines')}</a>`
|
||||||
},
|
},
|
||||||
descriptionDetail() {
|
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() {
|
issuetrackerLink() {
|
||||||
return `<a target="_blank" href="https://github.com/nextcloud/server/issues/" rel="noreferrer nofollow">${t('accessibility', 'our issue tracker')}</a>`
|
return `<a target="_blank" href="https://github.com/nextcloud/server/issues/" rel="noreferrer nofollow">${t('accessibility', 'our issue tracker')}</a>`
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<div class="preview-description">
|
<div class="preview-description">
|
||||||
<h3>{{preview.title}}</h3>
|
<h3>{{preview.title}}</h3>
|
||||||
<p>{{preview.text}}</p>
|
<p>{{preview.text}}</p>
|
||||||
<input type="checkbox" class="checkbox" :id="'accessibility-' + preview.id" v-model="selected" />
|
<input type="checkbox" class="checkbox" :id="'accessibility-' + preview.id" :checked="selected === preview.id" />
|
||||||
<label :for="'accessibility-' + preview.id" @click="selectItem">{{t('accessibility', 'Enable')}} {{preview.title.toLowerCase()}}</label>
|
<label :for="'accessibility-' + preview.id" @click="selectItem">{{t('accessibility', 'Enable')}} {{preview.title.toLowerCase()}}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue