From 9706bc47ff7a17540b257f0e99079c684d728ce3 Mon Sep 17 00:00:00 2001 From: ibqu <52726885+ibqu@users.noreply.github.com> Date: Fri, 22 Nov 2019 06:46:46 +1300 Subject: [PATCH] Work on the space-evenly option for flexbox justify-content (#37797) This challenge requests setting the justify-content attribute to one of the possible values shown in the previous challenge. One of these values - space-evenly - doesn't actually work (at least for the English version). In this commit I fix the space-evenly issues to some extent. I cannot tick the box saying that all files changed are in the same world language. However, the changes made should be understandable in all languages. There still is more to be done for languages other than English, like adding to the test text for Arabic, Portuguese, and Spanish, and adding descriptions for space-evenly in the previous challenge. --- ...-the-justify-content-property-in-the-tweet-embed.arabic.md | 2 +- ...the-justify-content-property-in-the-tweet-embed.chinese.md | 4 ++-- ...the-justify-content-property-in-the-tweet-embed.english.md | 4 ++-- ...-justify-content-property-in-the-tweet-embed.portuguese.md | 2 +- ...the-justify-content-property-in-the-tweet-embed.russian.md | 4 ++-- ...the-justify-content-property-in-the-tweet-embed.spanish.md | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/curriculum/challenges/arabic/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.arabic.md b/curriculum/challenges/arabic/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.arabic.md index b3c6c77f7d..d4b5fb16b9 100644 --- a/curriculum/challenges/arabic/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.arabic.md +++ b/curriculum/challenges/arabic/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.arabic.md @@ -18,7 +18,7 @@ localeTitle: استخدم خاصية theify-content في تطبيق Tweet Tweet ```yml tests: - text: 'يجب أن يكون لعنصر .profile-name خاصية ضبط justify-content المضبوطة على أي من هذه القيم: مركز ، أو بداية مرنة ، أو نهاية مرنة ، أو مسافة بينية ، أو مسافة.' - testString: 'assert(code.match(/header\s.profile-name\s*{\s*?.*?\s*?.*?\s*?\s*?.*?\s*?justify-content\s*:\s*(center|flex-start|flex-end|space-between|space-around)\s*;/g), "The .profile-name element should have the justify-content property set to any of these values: center, flex-start, flex-end, space-between, or space-around.");' + testString: 'assert(code.match(/header\s.profile-name\s*{\s*?.*?\s*?.*?\s*?\s*?.*?\s*?justify-content\s*:\s*(center|flex-start|flex-end|space-between|space-around|space-evenly)\s*;/g), "The .profile-name element should have the justify-content property set to any of these values: center, flex-start, flex-end, space-between, space-around, or space-evenly.");' ``` diff --git a/curriculum/challenges/chinese/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.chinese.md b/curriculum/challenges/chinese/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.chinese.md index 8587428d21..58fb998ff1 100644 --- a/curriculum/challenges/chinese/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.chinese.md +++ b/curriculum/challenges/chinese/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.chinese.md @@ -17,8 +17,8 @@ localeTitle: 在Tweet Embed中使用justify-content属性 ```yml tests: - - text: .profile-name元素应将justify-content属性设置为以下任何值:center,flex-start,flex-end,space-between或space-around。 - testString: 'assert(code.match(/header\s.profile-name\s*{\s*?.*?\s*?.*?\s*?\s*?.*?\s*?justify-content\s*:\s*(center|flex-start|flex-end|space-between|space-around)\s*;/g), "The .profile-name element should have the justify-content property set to any of these values: center, flex-start, flex-end, space-between, or space-around.");' + - text: .profile-name元素应将justify-content属性设置为以下任何值:center,flex-start,flex-end,space-between,space-around或space-evenly。 + testString: 'assert(code.match(/header\s.profile-name\s*{\s*?.*?\s*?.*?\s*?\s*?.*?\s*?justify-content\s*:\s*(center|flex-start|flex-end|space-between|space-around|space-evenly)\s*;/g), "The .profile-name element should have the justify-content property set to any of these values: center, flex-start, flex-end, space-between, space-around, or space-evenly.");' ``` diff --git a/curriculum/challenges/english/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.english.md b/curriculum/challenges/english/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.english.md index d5fb527a9c..e9ad5124d2 100644 --- a/curriculum/challenges/english/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.english.md +++ b/curriculum/challenges/english/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.english.md @@ -21,8 +21,8 @@ Add the CSS property justify-content to the header's .profile ```yml tests: - - text: 'The .profile-name element should have the justify-content property set to any of these values: center, flex-start, flex-end, space-between, or space-around.' - testString: 'assert(code.match(/header\s.profile-name\s*{\s*?.*?\s*?.*?\s*?\s*?.*?\s*?justify-content\s*:\s*(center|flex-start|flex-end|space-between|space-around)\s*;/g));' + - text: 'The .profile-name element should have the justify-content property set to any of these values: center, flex-start, flex-end, space-between, space-around, or space-evenly.' + testString: 'assert(code.match(/header\s.profile-name\s*{\s*?.*?\s*?.*?\s*?\s*?.*?\s*?justify-content\s*:\s*(center|flex-start|flex-end|space-between|space-around|space-evenly)\s*;/g));' ``` diff --git a/curriculum/challenges/portuguese/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.portuguese.md b/curriculum/challenges/portuguese/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.portuguese.md index c654497bac..32a0c8eb93 100644 --- a/curriculum/challenges/portuguese/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.portuguese.md +++ b/curriculum/challenges/portuguese/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.portuguese.md @@ -18,7 +18,7 @@ localeTitle: Use a propriedade justify-content no Tweet Incorporar ```yml tests: - text: 'O elemento .profile-name deve ter a propriedade justify-content definida para qualquer um desses valores: center, flex-start, flex-end, espaço-entre ou espaço-around.' - testString: 'assert(code.match(/header\s.profile-name\s*{\s*?.*?\s*?.*?\s*?\s*?.*?\s*?justify-content\s*:\s*(center|flex-start|flex-end|space-between|space-around)\s*;/g), "The .profile-name element should have the justify-content property set to any of these values: center, flex-start, flex-end, space-between, or space-around.");' + testString: 'assert(code.match(/header\s.profile-name\s*{\s*?.*?\s*?.*?\s*?\s*?.*?\s*?justify-content\s*:\s*(center|flex-start|flex-end|space-between|space-around|space-evenly)\s*;/g), "The .profile-name element should have the justify-content property set to any of these values: center, flex-start, flex-end, space-between, space-around, or space-evenly.");' ``` diff --git a/curriculum/challenges/russian/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.russian.md b/curriculum/challenges/russian/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.russian.md index b4a2bc8a3d..ce6967769b 100644 --- a/curriculum/challenges/russian/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.russian.md +++ b/curriculum/challenges/russian/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.russian.md @@ -22,8 +22,8 @@ localeTitle: Используйте свойство justify-content в Tweet Em ```yml tests: - - text: 'The .profile-name element should have the justify-content property set to any of these values: center, flex-start, flex-end, space-between, or space-around.' - testString: assert(code.match(/header\s.profile-name\s*{\s*?.*?\s*?.*?\s*?\s*?.*?\s*?justify-content\s*:\s*(center|flex-start|flex-end|space-between|space-around)\s*;/g)); + - text: 'The .profile-name element should have the justify-content property set to any of these values: center, flex-start, flex-end, space-between, space-around, or space-evenly.' + testString: assert(code.match(/header\s.profile-name\s*{\s*?.*?\s*?.*?\s*?\s*?.*?\s*?justify-content\s*:\s*(center|flex-start|flex-end|space-between|space-around|space-evenly)\s*;/g)); ``` diff --git a/curriculum/challenges/spanish/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.spanish.md b/curriculum/challenges/spanish/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.spanish.md index 202f44809d..5cb75585d2 100644 --- a/curriculum/challenges/spanish/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.spanish.md +++ b/curriculum/challenges/spanish/01-responsive-web-design/css-flexbox/use-the-justify-content-property-in-the-tweet-embed.spanish.md @@ -18,7 +18,7 @@ localeTitle: Use la propiedad justify-content en el Tweet Insertar ```yml tests: - text: 'El elemento .profile-name debe tener la propiedad .profile-name justify-content establecida en cualquiera de estos valores: centro, inicio flexible, final flexible, espacio intermedio o espacio-alrededor.' - testString: 'assert(code.match(/header\s.profile-name\s*{\s*?.*?\s*?.*?\s*?\s*?.*?\s*?justify-content\s*:\s*(center|flex-start|flex-end|space-between|space-around)\s*;/g), "The .profile-name element should have the justify-content property set to any of these values: center, flex-start, flex-end, space-between, or space-around.");' + testString: 'assert(code.match(/header\s.profile-name\s*{\s*?.*?\s*?.*?\s*?\s*?.*?\s*?justify-content\s*:\s*(center|flex-start|flex-end|space-between|space-around|space-evenly)\s*;/g), "The .profile-name element should have the justify-content property set to any of these values: center, flex-start, flex-end, space-between, space-around, or space-evenly.");' ```