mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-27 11:04:01 -05:00
fix(curriculum): refine editable regions in build a heart icon (#65302)
Co-authored-by: Jeevankumar-S <jeevenkumar2003@email.com>
This commit is contained in:
@@ -32,11 +32,11 @@ assert.exists(path);
|
||||
<title>Heart Icon</title>
|
||||
</head>
|
||||
<body>
|
||||
--fcc-editable-region--
|
||||
<svg>
|
||||
|
||||
</svg>
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
</svg>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -46,11 +46,13 @@ assert.strictEqual(
|
||||
<title>Heart Icon</title>
|
||||
</head>
|
||||
<body>
|
||||
--fcc-editable-region--
|
||||
<svg>
|
||||
<path></path>
|
||||
<path
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
></path>
|
||||
</svg>
|
||||
--fcc-editable-region--
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -41,11 +41,11 @@ assert.strictEqual(svg.getAttribute('height'), '24');
|
||||
<body>
|
||||
--fcc-editable-region--
|
||||
<svg>
|
||||
--fcc-editable-region--
|
||||
<path
|
||||
d="M12 21s-6-4.35-9.33-8.22C-.5 7.39 3.24 1 8.4 4.28 10.08 5.32 12 7.5 12 7.5s1.92-2.18 3.6-3.22C20.76 1 24.5 7.39 21.33 12.78 18 16.65 12 21 12 21z"
|
||||
></path>
|
||||
</svg>
|
||||
--fcc-editable-region--
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -81,11 +81,11 @@ assert.strictEqual(height, '24');
|
||||
<body>
|
||||
--fcc-editable-region--
|
||||
<svg width="24" height="24">
|
||||
--fcc-editable-region--
|
||||
<path
|
||||
d="M12 21s-6-4.35-9.33-8.22C-.5 7.39 3.24 1 8.4 4.28 10.08 5.32 12 7.5 12 7.5s1.92-2.18 3.6-3.22C20.76 1 24.5 7.39 21.33 12.78 18 16.65 12 21 12 21z"
|
||||
></path>
|
||||
</svg>
|
||||
--fcc-editable-region--
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
@@ -44,11 +44,11 @@ assert.strictEqual(fill, "red");
|
||||
<body>
|
||||
--fcc-editable-region--
|
||||
<svg width="24" height="24" viewBox="0 0 24 24">
|
||||
--fcc-editable-region--
|
||||
<path
|
||||
d="M12 21s-6-4.35-9.33-8.22C-.5 7.39 3.24 1 8.4 4.28 10.08 5.32 12 7.5 12 7.5s1.92-2.18 3.6-3.22C20.76 1 24.5 7.39 21.33 12.78 18 16.65 12 21 12 21z"
|
||||
></path>
|
||||
</svg>
|
||||
--fcc-editable-region--
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user