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:
@@ -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>"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user