chore(learn): Remove colors shown as keywords (#45564)
This commit is contained in:
@ -27,19 +27,19 @@ Change the `background-color` of each `div` element based on the class names (`g
|
|||||||
|
|
||||||
# --hints--
|
# --hints--
|
||||||
|
|
||||||
Your code should use the `hsl()` function to declare the color `green`.
|
Your code should use the `hsl()` function to declare the color green.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(code.match(/\.green\s*?{\s*?background-color\s*:\s*?hsl/gi));
|
assert(code.match(/\.green\s*?{\s*?background-color\s*:\s*?hsl/gi));
|
||||||
```
|
```
|
||||||
|
|
||||||
Your code should use the `hsl()` function to declare the color `cyan`.
|
Your code should use the `hsl()` function to declare the color cyan.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(code.match(/\.cyan\s*?{\s*?background-color\s*:\s*?hsl/gi));
|
assert(code.match(/\.cyan\s*?{\s*?background-color\s*:\s*?hsl/gi));
|
||||||
```
|
```
|
||||||
|
|
||||||
Your code should use the `hsl()` function to declare the color `blue`.
|
Your code should use the `hsl()` function to declare the color blue.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(code.match(/\.blue\s*?{\s*?background-color\s*:\s*?hsl/gi));
|
assert(code.match(/\.blue\s*?{\s*?background-color\s*:\s*?hsl/gi));
|
||||||
|
Reference in New Issue
Block a user