mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-05 18:01:45 -04:00
fix(curriculum): improve Crowdin compatibility for workshop-nutritional-label (#60122)
Co-authored-by: Varshith Kalakota <vkalakota1@toromail.csudh.edu> Co-authored-by: Ilenia <26656284+ilenia-magoni@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
3e9982107d
commit
f9a2b91c8b
@@ -40,7 +40,7 @@ const cholesterolSpan = spans.filter(span => span?.innerHTML?.match(/^[\s\n]*Cho
|
||||
assert(cholesterolSpan.length === 1);
|
||||
```
|
||||
|
||||
Your `Cholesterol` `span` should have the `class` attribute set to `bold`.
|
||||
The `span` element that contains the text `Cholesterol` should have its `class` attribute set to `bold`.
|
||||
|
||||
```js
|
||||
const spans = [...document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelectorAll('span')];
|
||||
@@ -56,7 +56,7 @@ const zeroPercentSpan = spans.filter(span => span?.innerHTML?.match(/^[\s\n]*0%[
|
||||
assert(zeroPercentSpan.length === 1);
|
||||
```
|
||||
|
||||
Your `0%` `span` should have the `class` attribute set to `bold`.
|
||||
The `span` element that contains the text `0%` should have its `class` attribute set to `bold`.
|
||||
|
||||
```js
|
||||
const spans = [...document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelectorAll('span')];
|
||||
@@ -64,7 +64,7 @@ const zeroPercentSpan = spans.filter(span => span?.innerHTML?.match(/^[\s\n]*0%[
|
||||
assert(zeroPercentSpan[0]?.classList?.contains('bold'));
|
||||
```
|
||||
|
||||
Your `Cholesterol` `span` and your `0mg` text should be wrapped in a `span`.
|
||||
The `span` element that contains the text `Cholesterol` and the text `0mg` should be wrapped together in another `span` element.
|
||||
|
||||
```js
|
||||
const spans = [...document.querySelector('.daily-value.small-text')?.lastElementChild?.querySelectorAll('span')];
|
||||
|
||||
Reference in New Issue
Block a user