fix(lessons): improve validation completeness and best practices

- 00-basic-selectors: add missing validation message, fix semicolons
- 05-units-variables: replace hex color with named color, use round numbers
- 08-responsive: rename "Flex Grids" to "Responsive Grid" for clarity
- 24-html-progress-meter: add missing high/max/optimum validations
- 32-html-svg: add comprehensive attribute validations for SVG elements
This commit is contained in:
2026-01-07 14:16:16 +01:00
parent f050c1dcb9
commit 52abfb37db
5 changed files with 108 additions and 18 deletions

View File

@@ -186,7 +186,7 @@
"initialCode": "",
"codeSuffix": "",
"previewContainer": "preview-area",
"solution": ".card.featured { border-color: gold; background-color: lemonchiffon }",
"solution": ".card.featured { border-color: gold; background-color: lemonchiffon; }",
"validations": [
{
"type": "regex",
@@ -394,7 +394,7 @@
"initialCode": "",
"codeSuffix": "",
"previewContainer": "preview-area",
"solution": "p.note,\nli.important,\n#summary {\n background-color: lightyellow;\n border-left: 3px solid gold;\n padding-left: 10px\n}",
"solution": "p.note,\nli.important,\n#summary {\n background-color: lightyellow;\n border-left: 3px solid gold;\n padding-left: 10px;\n}",
"validations": [
{
"type": "contains",
@@ -542,7 +542,7 @@
{
"type": "contains",
"value": "green",
"message": ""
"message": "Set the color to <kbd>green</kbd>"
}
]
}