fix: add kbd tags to validation messages for clarity

- Wrap HTML element names in <kbd> tags in all validation messages
- Apply consistent formatting to both English and German lessons
- Make hints clearer about which elements/attributes to use
- Fix mobile editor layout overflow issue
This commit is contained in:
2025-12-25 15:55:26 +01:00
parent 935969a80c
commit 31407dcb51
27 changed files with 230 additions and 222 deletions

View File

@@ -21,17 +21,17 @@
{
"type": "element_exists",
"value": "dialog",
"message": "Add a <dialog> element"
"message": "Add a <kbd>&lt;dialog&gt;</kbd> element"
},
{
"type": "attribute_value",
"value": { "selector": "dialog", "attr": "open", "value": true },
"message": "Add the 'open' attribute to show the dialog"
"message": "Add the <kbd>open</kbd> attribute to show the dialog"
},
{
"type": "element_exists",
"value": "dialog h2",
"message": "Add an <h2> heading inside the dialog"
"message": "Add an <kbd>&lt;h2&gt;</kbd> heading inside the dialog"
},
{
"type": "element_exists",
@@ -60,7 +60,7 @@
{
"type": "element_exists",
"value": "dialog[open]",
"message": "Add a <dialog> with the open attribute"
"message": "Add a <kbd>&lt;dialog&gt;</kbd> with the open attribute"
},
{
"type": "element_exists",