Freecodecamp: Grey should be acceptable for Gray

Created on 2 Jul 2016  路  6Comments  路  Source: freeCodeCamp/freeCodeCamp

For Give a Background Color to a Div Element the color gray could also be done as grey as it is spelled in certain places. Both give the right color to the background.

discussing

Most helpful comment

@erictleung, I think we should choose option 2 and just change the color. That seems the easiest and simplest solution. Just pick a color e.g. pink that doesn't have english (UK) / english (US) issues.

All 6 comments

I see your point that grey equates to the same color for the background, but one of the spellings had to be chosen for the class name, and I think it makes sense that the color name used should match the class name gray-background. It reinforces consistency and attention to detail at this early part of the course.

Unless we should change the class name to gray-or-grey-background? :)

I think it could be beneficial to point out that even though the spelling is different using grey as a pose to gray would still work because for some people they would naturally use that spelling. I can not think of any other examples of occurrences like this as I am just begging to learn how to code, but I'm sure there are other examples out there.

So gray is the among basic color keywords according to the W3. Eventually, it appears that an expanded set of color keywords were added which allowed for spelling variants gray/grey to indicate the same color.

So there are a couple things we could do:

  1. modify the tests in the background to accept grey and gray spellings
  2. change the color used in this challenge to avoid this issue altogether
  3. keep it how it is and mention the acceptable use of both grey and gray

cc/ @FreeCodeCamp/issue-moderators

@erictleung, I think we should choose option 2 and just change the color. That seems the easiest and simplest solution. Just pick a color e.g. pink that doesn't have english (UK) / english (US) issues.

+1!

@atjonathan Funny that you mention UK/US english differences, since UK english users have to accept the (far more common) use of "color" in styling when their spelling is "colour" :)

And hotpink is in the expanded color list too, but I'd like to suggest either silver or skyblue as an alternative colo(u)r.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

raisedadead picture raisedadead  路  3Comments

kokushozero picture kokushozero  路  3Comments

SaintPeter picture SaintPeter  路  3Comments

DaphnisM picture DaphnisM  路  3Comments

robwelan picture robwelan  路  3Comments