From 55f95c2f74874ffbbff69a34315efc4edc8772fb Mon Sep 17 00:00:00 2001
From: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
Date: Wed, 13 Nov 2019 12:39:03 -0800
Subject: [PATCH] fix(curriculum): Allow leading to zero before decimal point
to be optional for opacity value (#37715)
* fix: allow-leading-zero-to-be-optional-before-decimal-point-for-opacity
* fix: use getComputedStyle intead of regex
Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com>
---
.../decrease-the-opacity-of-an-element.english.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/decrease-the-opacity-of-an-element.english.md b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/decrease-the-opacity-of-an-element.english.md
index 8d247deac8..b0fb98571d 100644
--- a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/decrease-the-opacity-of-an-element.english.md
+++ b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/decrease-the-opacity-of-an-element.english.md
@@ -24,7 +24,7 @@ Set the opacity
of the anchor tags to 0.7 using links
```yml
tests:
- text: Your code should set the opacity
property to 0.7 on the anchor tags by selecting the class of links
.
- testString: assert(/\.links\s*\{[^}]+opacity\s*:\s*0.7;/.test(code));
+ testString: assert(getComputedStyle($('.links')[0]).opacity == '0.7');
```