mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): split up test in lab job application form (#60350)
This commit is contained in:
+13
-1
@@ -113,12 +113,24 @@ The `button` element should have a `:hover` pseudo-class that changes the backgr
|
||||
assert.isNotEmpty(new __helpers.CSSHelp(document).getStyle('button:hover').getPropertyValue('background-color'))
|
||||
```
|
||||
|
||||
You should use the `:checked` pseudo-class on `.radio-group input[type="radio"]` to add a border color, background color and a box shadow when the radio button is selected.
|
||||
You should use the `:checked` pseudo-class on `.radio-group input[type="radio"]` to add a border color when the radio button is selected.
|
||||
|
||||
```js
|
||||
const style = new __helpers.CSSHelp(document).getStyle('.radio-group input[type="radio"]:checked');
|
||||
assert.isNotEmpty(style.getPropertyValue('border-color'));
|
||||
```
|
||||
|
||||
You should use the `:checked` pseudo-class on `.radio-group input[type="radio"]` to add a background color when the radio button is selected.
|
||||
|
||||
```js
|
||||
const style = new __helpers.CSSHelp(document).getStyle('.radio-group input[type="radio"]:checked');
|
||||
assert.isNotEmpty(style.getPropertyValue('background-color'));
|
||||
```
|
||||
|
||||
You should use the `:checked` pseudo-class on `.radio-group input[type="radio"]` to add a box shadow when the radio button is selected.
|
||||
|
||||
```js
|
||||
const style = new __helpers.CSSHelp(document).getStyle('.radio-group input[type="radio"]:checked');
|
||||
assert.isNotEmpty(style.getPropertyValue('box-shadow'));
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user