Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#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 7 years ago by tj.vantoll

Resolution: notabug
Status: newclosed

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';

comment:2 Changed 7 years ago by Scott González

comment:3 Changed 7 years ago by rockstarrem

Why would they do this?

Last edited 7 years ago by rockstarrem (previous) (diff)

comment:4 Changed 7 years ago by Scott González

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.

Note: See TracTickets for help on using tickets.