From f9a2b91c8b0cffcc631c84cde847806f4e08a0fc Mon Sep 17 00:00:00 2001 From: Varshith Kalakota <56188204+vkalakota18@users.noreply.github.com> Date: Fri, 2 May 2025 08:40:59 -0700 Subject: [PATCH] fix(curriculum): improve Crowdin compatibility for workshop-nutritional-label (#60122) Co-authored-by: Varshith Kalakota Co-authored-by: Ilenia <26656284+ilenia-magoni@users.noreply.github.com> --- .../workshop-nutritional-label/615f7de4487b64919bb4aa5e.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/curriculum/challenges/english/25-front-end-development/workshop-nutritional-label/615f7de4487b64919bb4aa5e.md b/curriculum/challenges/english/25-front-end-development/workshop-nutritional-label/615f7de4487b64919bb4aa5e.md index ce39f09eae5..3dde5af0ee9 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-nutritional-label/615f7de4487b64919bb4aa5e.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-nutritional-label/615f7de4487b64919bb4aa5e.md @@ -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')];