#8887 closed bug (notabug)
In latest jQuery UI backgroundColor: "orange" doesn't work. All other colors do.
Reported by: | rockstarrem | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.10.0 |
Component: | ui.core | Version: | 1.9.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Using the latest version of jQuery UI, which is 1.9.2, backgroundColor: "orange" is not recognized. All other colors that I've tried do work.
jsBin: http://jsbin.com/acapac/1
Color just changes to white.
Change History (4)
comment:1 Changed 10 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
comment:2 Changed 10 years ago by
You can also pull in the full list: https://github.com/jquery/jquery-color/blob/master/jquery.color.svg-names.js
comment:4 Changed 10 years ago by
Because the list was massive and contained select colors. So instead of adding ALL the colors (there were some missing), we restricted the built-in set to the basic set and provided the full set in a separate file.
Corey, Jörn, Rafael: We should figure out a way to make externals options in the download builder so that users can choose the full color list. As a stop gap, we can just pull it in as if it were part of jQuery UI proper and list it that way. Let's discuss in IRC.
This was an intentional change made when UI switched to jQuery color in 1.9. The list of supported colors are here - https://github.com/jquery/jquery-color/blob/master/jquery.color.js#L635.
You can add orange using
jQuery.Color.names.orange = '#FF9900';