Skip to content

Commit 5e236ca

Browse files
committed
Add rich_text emphasis to spelling wrong-answer feedback
Use <strong> tags on the correct word in spelling wrong-answer messages so frontends that support rich_text rendering show it emphasized.
1 parent 3eb6eef commit 5e236ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/fixtures/huey-spelling-flow.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"id": "wrong_one",
102102
"type": "message",
103103
"content": {
104-
"messages": [{"type": "text", "text": "Not quite! The correct spelling is: {{temp.spelling_answer.correct_word}}"}]
104+
"messages": [{"type": "text", "content": {"text": "Not quite! The correct spelling is: {{temp.spelling_answer.correct_word}}", "rich_text": "Not quite! The correct spelling is: <strong>{{temp.spelling_answer.correct_word}}</strong>"}}]
105105
},
106106
"position": {"x": 1100, "y": 300}
107107
},
@@ -147,7 +147,7 @@
147147
"id": "wrong_two",
148148
"type": "message",
149149
"content": {
150-
"messages": [{"type": "text", "text": "Oops! It's actually: {{temp.spelling_answer.correct_word}}"}]
150+
"messages": [{"type": "text", "content": {"text": "Oops! It's actually: {{temp.spelling_answer.correct_word}}", "rich_text": "Oops! It's actually: <strong>{{temp.spelling_answer.correct_word}}</strong>"}}]
151151
},
152152
"position": {"x": 1700, "y": 300}
153153
},
@@ -193,7 +193,7 @@
193193
"id": "wrong_three",
194194
"type": "message",
195195
"content": {
196-
"messages": [{"type": "text", "text": "Close! The correct spelling is: {{temp.spelling_answer.correct_word}}"}]
196+
"messages": [{"type": "text", "content": {"text": "Close! The correct spelling is: {{temp.spelling_answer.correct_word}}", "rich_text": "Close! The correct spelling is: <strong>{{temp.spelling_answer.correct_word}}</strong>"}}]
197197
},
198198
"position": {"x": 2300, "y": 300}
199199
},

0 commit comments

Comments
 (0)