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:
@@ -21,17 +21,17 @@
|
||||
{
|
||||
"type": "element_exists",
|
||||
"value": "figure",
|
||||
"message": "Add a <figure> element"
|
||||
"message": "Add a <kbd><figure></kbd> element"
|
||||
},
|
||||
{
|
||||
"type": "element_exists",
|
||||
"value": "figure img",
|
||||
"message": "Add an <img> inside the figure"
|
||||
"message": "Add an <kbd><img></kbd> inside the figure"
|
||||
},
|
||||
{
|
||||
"type": "element_exists",
|
||||
"value": "figcaption",
|
||||
"message": "Add a <figcaption> for the caption"
|
||||
"message": "Add a <kbd><figcaption></kbd> for the caption"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -50,22 +50,22 @@
|
||||
{
|
||||
"type": "element_exists",
|
||||
"value": "figure",
|
||||
"message": "Add a <figure> element"
|
||||
"message": "Add a <kbd><figure></kbd> element"
|
||||
},
|
||||
{
|
||||
"type": "element_exists",
|
||||
"value": "pre",
|
||||
"message": "Add a <pre> element for preformatted text"
|
||||
"message": "Add a <kbd><pre></kbd> element for preformatted text"
|
||||
},
|
||||
{
|
||||
"type": "element_exists",
|
||||
"value": "code",
|
||||
"message": "Add a <code> element for the code"
|
||||
"message": "Add a <kbd><code></kbd> element for the code"
|
||||
},
|
||||
{
|
||||
"type": "element_exists",
|
||||
"value": "figcaption",
|
||||
"message": "Add a <figcaption> describing the code"
|
||||
"message": "Add a <kbd><figcaption></kbd> describing the code"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -84,7 +84,7 @@
|
||||
{
|
||||
"type": "element_exists",
|
||||
"value": "figure",
|
||||
"message": "Add a <figure> element"
|
||||
"message": "Add a <kbd><figure></kbd> element"
|
||||
},
|
||||
{
|
||||
"type": "element_count",
|
||||
@@ -94,7 +94,7 @@
|
||||
{
|
||||
"type": "element_exists",
|
||||
"value": "figcaption",
|
||||
"message": "Add a <figcaption> for the gallery"
|
||||
"message": "Add a <kbd><figcaption></kbd> for the gallery"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user