From 693047d5c63f06c9098c43e12ff3dc7a7e7c6cea Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Mon, 4 Feb 2019 10:22:30 +0100 Subject: [PATCH] fix: "Applied Visual Design: Adjust the Hover State of an Anchor Tag" now accepts more ways of writing 'blue' (#34939) * fix: test now accepts more ways of writing 'blue' * fix: include test for rgb --- ...-the-hover-state-of-an-anchor-tag.english.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/adjust-the-hover-state-of-an-anchor-tag.english.md b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/adjust-the-hover-state-of-an-anchor-tag.english.md index 180023a274..4e4d6811c4 100644 --- a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/adjust-the-hover-state-of-an-anchor-tag.english.md +++ b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/adjust-the-hover-state-of-an-anchor-tag.english.md @@ -25,7 +25,7 @@ tests: - text: The anchor tag color should remain black, only add CSS rules for the :hover state. testString: assert($('a').css('color') == 'rgb(0, 0, 0)', 'The anchor tag color should remain black, only add CSS rules for the :hover state.'); - text: The anchor tag should have a color of blue on hover. - testString: assert(code.match(/a:hover\s*?{\s*?color:\s*?blue;\s*?}/gi), 'The anchor tag should have a color of blue on hover.'); + testString: assert(code.match(/a:hover\s*?{\s*?color:\s*?(blue|rgba\(\s*?0\s*?,\s*?0\s*?,\s*?255\s*?,\s*?1\s*?\)|#00F|rgb\(\s*?0\s*?,\s*?0\s*?,\s*?255\s*?\))\s*?;\s*?}/gi), 'The anchor tag should have a color of blue on hover.'); ``` @@ -57,7 +57,18 @@ tests: ## Solution
-```js -// solution required +```html + +CatPhotoApp ```