Opened 8 years ago

Closed 7 years ago

#15078 closed enhancement (patchwelcome)

dojox.fx.highlight is limited to one transparent colour

Reported by: Nick Fenwick Owned by: dante
Priority: low Milestone: 1.9
Component: Dojox Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:

Description

dojox.fx.highlight requires you to specify the transparent colour in data-dojo-config, e.g.:

  <script src="//ajax.googleapis.com/ajax/libs/dojo/1.7.2/dojo/dojo.js"
    data-dojo-config="async:true, transparentColor: [255, 255, 255]"></script>

This makes it pretty useless for general purpose highlighting, where elements may be on different colour backgrounds.

See attached test case. Only the example on a white background looks good, because of the [255, 255, 255] in the transparentColor config.

Expected behaviour: dojox.fx.highlight should pick up the element's actual background colour and use that when animating colours. Or, use some kind of alpha or transparency that avoids the need to specify the background colour.

Attachments (1)

dojox.fx.highlight.weirdness.html (1.5 KB) - added by Nick Fenwick 8 years ago.
Simple test case using CDN with three different colour backgrounds.

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by Nick Fenwick

Simple test case using CDN with three different colour backgrounds.

comment:1 Changed 8 years ago by Adam Peller

Owner: changed from Adam Peller to dante
Status: newassigned

comment:2 Changed 8 years ago by bill

See also #6399. Note that (IIUC) the background-color that you need to fade to could come from any ancestor node rather than the node itself.

comment:3 Changed 7 years ago by dylan

Milestone: tbd1.9
Priority: undecidedlow
Resolution: patchwelcome
Status: assignedclosed

A patch would be welcome to fix this. Otherwise I don't think it will get fixed given the lack of activity.

Note: See TracTickets for help on using tickets.