Skip to content

Commit f99a850

Browse files
committed
fix(a11y): Prevent escaping of aria-labels in QuestionLong and QuestionShort components
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
1 parent c876c78 commit f99a850

2 files changed

Lines changed: 18 additions & 6 deletions

File tree

src/components/Questions/QuestionLong.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,15 @@
1313
<textarea
1414
ref="textarea"
1515
:aria-label="
16-
t('forms', 'A long answer for the question “{text}”', {
17-
text,
18-
})
16+
t(
17+
'forms',
18+
'A long answer for the question “{text}”',
19+
{
20+
text,
21+
},
22+
undefined,
23+
{ escape: false },
24+
)
1925
"
2026
:placeholder="submissionInputPlaceholder"
2127
:disabled="!readOnly"

src/components/Questions/QuestionShort.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,15 @@
1313
<input
1414
ref="input"
1515
:aria-label="
16-
t('forms', 'A short answer for the question “{text}”', {
17-
text,
18-
})
16+
t(
17+
'forms',
18+
'A short answer for the question “{text}”',
19+
{
20+
text,
21+
},
22+
undefined,
23+
{ escape: false },
24+
)
1925
"
2026
:placeholder="submissionInputPlaceholder"
2127
:disabled="!readOnly"

0 commit comments

Comments
 (0)