From 6d808de3b640305aa5ae172906be39e7970064fd Mon Sep 17 00:00:00 2001 From: Chamali Vishmani Date: Sat, 18 Jan 2025 18:26:17 +0530 Subject: [PATCH] fix(curriculum) : change 'colour' to 'color' to use american spelling (#58218) --- .../lab-fortune-teller/66c06d618d075c7f7f1b890a.md | 4 ++-- .../66ed8ff4f45ce3ece4053eb4.md | 2 +- .../614796cb8086be482d60e0ac.md | 6 +++--- .../6148e161ecec9511941f8833.md | 10 +++++----- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/curriculum/challenges/english/25-front-end-development/lab-fortune-teller/66c06d618d075c7f7f1b890a.md b/curriculum/challenges/english/25-front-end-development/lab-fortune-teller/66c06d618d075c7f7f1b890a.md index 638b7769246..350e7b4ad21 100644 --- a/curriculum/challenges/english/25-front-end-development/lab-fortune-teller/66c06d618d075c7f7f1b890a.md +++ b/curriculum/challenges/english/25-front-end-development/lab-fortune-teller/66c06d618d075c7f7f1b890a.md @@ -19,7 +19,7 @@ Fulfill the user stories below and get all the tests to pass to complete the lab - `"The weather will be nice tomorrow."` - `"Be cautious of your new neighbours."` - `"You will find a new hobby soon."` - - `"It would be wise to avoid the colour red today."` + - `"It would be wise to avoid the color red today."` 2. You should select a random number between 1 and 5, inclusive, and assign it to the variable `randomNumber`. @@ -122,7 +122,7 @@ const fortune1 = "Your cat will look very cuddly today."; const fortune2 = "The weather will be nice tomorrow."; const fortune3 = "Be cautious of your new neighbours."; const fortune4 = "You will find a new hobby soon."; -const fortune5 = "It would be wise to avoid the colour red today."; +const fortune5 = "It would be wise to avoid the color red today."; let randomNumber = Math.floor(Math.random() * 5) + 1; diff --git a/curriculum/challenges/english/25-front-end-development/quiz-css-layout-and-effects/66ed8ff4f45ce3ece4053eb4.md b/curriculum/challenges/english/25-front-end-development/quiz-css-layout-and-effects/66ed8ff4f45ce3ece4053eb4.md index 9dddcbb2439..8bd0f518d31 100644 --- a/curriculum/challenges/english/25-front-end-development/quiz-css-layout-and-effects/66ed8ff4f45ce3ece4053eb4.md +++ b/curriculum/challenges/english/25-front-end-development/quiz-css-layout-and-effects/66ed8ff4f45ce3ece4053eb4.md @@ -179,7 +179,7 @@ They adjust the padding and margin of an element. --- -They set the background colour and font style of an element. +They set the background color and font style of an element. --- diff --git a/curriculum/challenges/english/25-front-end-development/workshop-accessibility-quiz/614796cb8086be482d60e0ac.md b/curriculum/challenges/english/25-front-end-development/workshop-accessibility-quiz/614796cb8086be482d60e0ac.md index af42e06d372..113371f48b0 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-accessibility-quiz/614796cb8086be482d60e0ac.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-accessibility-quiz/614796cb8086be482d60e0ac.md @@ -55,13 +55,13 @@ function contrast(rgb1, rgb2) { return (brightest + 0.05) / (darkest + 0.05); } -const backgroundColour = [27, 27, 50]; +const backgroundColor = [27, 27, 50]; for (let elem of document.querySelectorAll('li > a')) { const a = getComputedStyle(elem)?.color; const rgbA = a?.match(/(\d+),\s(\d+),\s(\d+)/); - const aColour = [rgbA[1], rgbA[2], rgbA[3]]; - assert.isAtLeast(contrast(backgroundColour, aColour), 7); + const aColor = [rgbA[1], rgbA[2], rgbA[3]]; + assert.isAtLeast(contrast(backgroundColor, aColor), 7); } ``` diff --git a/curriculum/challenges/english/25-front-end-development/workshop-accessibility-quiz/6148e161ecec9511941f8833.md b/curriculum/challenges/english/25-front-end-development/workshop-accessibility-quiz/6148e161ecec9511941f8833.md index 4ef11be18c6..966ccb68d09 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-accessibility-quiz/6148e161ecec9511941f8833.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-accessibility-quiz/6148e161ecec9511941f8833.md @@ -36,17 +36,17 @@ function contrast(rgb1, rgb2) { return (brightest + 0.05) / (darkest + 0.05); } -const backgroundColour = [42, 42, 64]; +const backgroundColor = [42, 42, 64]; const foot = getComputedStyle(document.querySelector('footer'))?.color; const a = getComputedStyle(document.querySelector('footer a'))?.color; const rgbFoot = foot?.match(/(\d+),\s(\d+),\s(\d+)/); const rgbA = a?.match(/(\d+),\s(\d+),\s(\d+)/); -const footColour = [rgbFoot[1], rgbFoot[2], rgbFoot[3]]; -const aColour = [rgbA[1], rgbA[2], rgbA[3]]; -assert.isAtLeast(contrast(backgroundColour, footColour), 7); -assert.isAtLeast(contrast(backgroundColour, aColour), 7); +const footColor = [rgbFoot[1], rgbFoot[2], rgbFoot[3]]; +const aColor = [rgbA[1], rgbA[2], rgbA[3]]; +assert.isAtLeast(contrast(backgroundColor, footColor), 7); +assert.isAtLeast(contrast(backgroundColor, aColor), 7); ``` # --seed--