gigaZhang / crux-framework

Automatically exported from code.google.com/p/crux-framework
0 stars 0 forks source link

[Widgets] Add attribute 'addStyleName' or refactor 'styleName' attribute #377

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Today the default behavior of 'styleName' attribute on widgets is overwrite 
styles used by Crux, which contain the default styles for the component. This 
means that on more complex components almost (if not) all its visual 
functionality is lost.

This isn't a so good approach, the declarative form of styleNames should not 
overwrite Crux styles. If the user want to get rid of our default styles he 
should do it by removing Crux resources from the project, or, by removing from 
a component at its specific controller.

A good approach would be append the declared styleNames on the component. This 
way the user can give it custom styles directly in the views and the component 
still get the visual behavior from framework's default styles.

Original issue reported on code.google.com by claudio....@cruxframework.org on 27 May 2014 at 2:44

GoogleCodeExporter commented 9 years ago

Original comment by alexan...@triggolabs.com on 3 Jul 2014 at 11:37

GoogleCodeExporter commented 9 years ago

Original comment by alexan...@triggolabs.com on 3 Jul 2014 at 11:39

GoogleCodeExporter commented 9 years ago

Original comment by juli...@cruxframework.org on 30 Jul 2014 at 5:38

GoogleCodeExporter commented 9 years ago

Original comment by juli...@cruxframework.org on 26 Aug 2014 at 7:23

GoogleCodeExporter commented 9 years ago

Original comment by juli...@cruxframework.org on 19 Feb 2015 at 7:06