blackberry / bbUI.js

BlackBerry UI look and feel JavaScript toolkit for WebWorks
Apache License 2.0
312 stars 192 forks source link

Buttons highlight customization? #1022

Closed MerrickZ closed 10 years ago

MerrickZ commented 10 years ago

the normal button is rendered using highlight color, well I tried to give some warning button a red background but I found that the style attribute is overrided by bbui.js is there any way to do so?

tneil commented 10 years ago

There really isn't a way to override the highlight color except by going in and modifying the CSS. You "might" be able to do it by setting the style attributes in your own HTML to try and override the ones from the framework.

MerrickZ commented 10 years ago

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/HOWTO-hack-bbui-js-to-support-customized-button-colors/td-p/2899412

I did a hack to display a RED button,I know you can do much better :)

2014-06-02 22:48 GMT+08:00 Tim Neil notifications@github.com:

There really isn't a way to override the highlight color except by going in and modifying the CSS. You "might" be able to do it by setting the style attributes in your own HTML to try and override the ones from the framework.

— Reply to this email directly or view it on GitHub https://github.com/blackberry/bbUI.js/issues/1022#issuecomment-44846177.