I would like to override some of the styles by loading a .css file and using .setStyleName. However, styles internal to smartGWT.mobile seem to take precedence on styles set by .setStyleName.
I tested this on a TextItem for which styles with names like .sc-form input[type="text"] that are set by the framework are overriding style manually set with .setStyleName("customStyleName") and customStyleName being defined in .css file loaded with the .html.
Is there a way to override .sc... styles with a custom style ? I tested also with StyleInjector.injectAtEnd but again the custom style is treated before the .sc one and gets overridden. The only way that seems to work, is to define the .sc style (with the same name) but that is not what I want, I just want to override some specific attribute, not redefining the full style.
I tested this on a TextItem for which styles with names like .sc-form input[type="text"] that are set by the framework are overriding style manually set with .setStyleName("customStyleName") and customStyleName being defined in .css file loaded with the .html.
Is there a way to override .sc... styles with a custom style ? I tested also with StyleInjector.injectAtEnd but again the custom style is treated before the .sc one and gets overridden. The only way that seems to work, is to define the .sc style (with the same name) but that is not what I want, I just want to override some specific attribute, not redefining the full style.
Comment