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 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -21,22 +21,22 @@
|
||||
{
|
||||
"type": "element_exists",
|
||||
"value": "details",
|
||||
"message": "Add a <details> element"
|
||||
"message": "Add a <kbd><details></kbd> element"
|
||||
},
|
||||
{
|
||||
"type": "element_exists",
|
||||
"value": "summary",
|
||||
"message": "Add a <summary> inside the details"
|
||||
"message": "Add a <kbd><summary></kbd> inside the details"
|
||||
},
|
||||
{
|
||||
"type": "parent_child",
|
||||
"value": { "parent": "details", "child": "summary" },
|
||||
"message": "The <summary> must be inside <details>"
|
||||
"message": "The <kbd><summary></kbd> must be inside <kbd><details></kbd>"
|
||||
},
|
||||
{
|
||||
"type": "parent_child",
|
||||
"value": { "parent": "details", "child": "p" },
|
||||
"message": "Add a <p> inside <details> for the hidden content"
|
||||
"message": "Add a <kbd><p></kbd> inside <kbd><details></kbd> for the hidden content"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -55,7 +55,7 @@
|
||||
{
|
||||
"type": "attribute_value",
|
||||
"value": { "selector": "details", "attr": "open", "value": true },
|
||||
"message": "Add the 'open' attribute to <details>"
|
||||
"message": "Add the <kbd>open</kbd> attribute to <details>"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -74,7 +74,7 @@
|
||||
{
|
||||
"type": "element_exists",
|
||||
"value": "h1",
|
||||
"message": "Add an <h1> heading for the FAQ title"
|
||||
"message": "Add an <kbd><h1></kbd> heading for the FAQ title"
|
||||
},
|
||||
{
|
||||
"type": "element_count",
|
||||
@@ -84,12 +84,12 @@
|
||||
{
|
||||
"type": "element_count",
|
||||
"value": { "selector": "summary", "min": 3 },
|
||||
"message": "Each <details> needs a <summary> for the question"
|
||||
"message": "Each <kbd><details></kbd> needs a <summary> for the question"
|
||||
},
|
||||
{
|
||||
"type": "element_count",
|
||||
"value": { "selector": "details p", "min": 3 },
|
||||
"message": "Each <details> needs a <p> for the answer"
|
||||
"message": "Each <kbd><details></kbd> needs a <p> for the answer"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user