fredsa / gwt-dnd

Library providing easy to use mouse or touch based drag-and-drop capabilities to GWT
42 stars 41 forks source link

DragClientBundle approach does not allow us to override the style in a clean way. #122

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of GWT are you using? 1.3.3? 1.4.60? Other?
2.0.4

What version of the gwt-dnd jar file or library file are you using?
3.0

What operating system(s) are you using? Windows? Linux? Mac?
WinXP SP3

Does the issue occur in web mode, hosted mode, both or don't know?
All

What browser(s) do you use? Firefox, IE, Safari, other?
IE, Firefox

What is the browser version (if you know) from Help->About?
Irrelevant

What steps will reproduce the problem? Please attach sample code if you
can.

The current code of DND uses the DragClientBundle to set the styles of the 
dragproxy and other things. I need to replace some of the styles with my own 
colors to make it blend with my color scheme.

It would be nicer if GWT would divide it's use of CSS between the things it 
needs for technical reasons and styling that is there for cosmetic reasons. The 
cosmetic parts should be overridable and preferably all this should happen 
without the user of @external tags in the css file.

Just allow us to give a CssResource that contains styles to be applied to 
dragdrop proxy and positioner elements.

What is the expected output? What do you see instead?

Do you have a workaround?
Yes, right now you can enforce other colors by redeclaring these styles and 
using !important to override what is put per default in the gwtdnd.css, but 
that is not a very nice way of handling it.

Please provide any additional information below.

Original issue reported on code.google.com by david.nouls on 14 Sep 2010 at 9:19

GoogleCodeExporter commented 9 years ago
!important is okay with me :)

Original comment by fredsa on 31 Jan 2012 at 6:29