Skip to main content

Search and Top Navigation

#8887 closed bug (notabug)

Opened December 05, 2012 05:06PM UTC

Closed December 05, 2012 05:16PM UTC

Last modified December 05, 2012 06:26PM UTC

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.

Attachments (0)
Change History (4)

Changed December 05, 2012 05:16PM UTC by tj.vantoll comment:1

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

Changed December 05, 2012 05:31PM UTC by scottgonzalez comment:2

Changed December 05, 2012 06:22PM UTC by rockstarrem comment:3

_comment0: Why would you do this?1354731798406554

Why would they do this?

Changed December 05, 2012 06:26PM UTC by scottgonzalez comment:4

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.