This is a migrated thread and some comments may be shown as answers.

Change color of button

1 Answer 485 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rogelio
Top achievements
Rank 1
Rogelio asked on 16 May 2018, 06:55 PM

Hello,

 

I am currently using kendo's bootstrap 4 and had a question about button theming. How can I change the color of a button to be like the danger colored button as seen here [1]? I tried using the "color" prop that the Button component takes in but it does nothing. I can forcefully change the background through inline styling but was wondering if there was a better approach. I just figured the button styles would be supported by just saying: color=" or color="success"

 

[1] https://getbootstrap.com/docs/4.0/components/buttons/#examples

 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 17 May 2018, 07:26 AM
Hello, Rogelio,

The color property is just inherited by the HTML button which is used as a base. Currently, this property is not working for setting a color to the button in a regular button as well.

For now, the desired style can be set using inline style.

Apologies for the inconvenience this may have caused you.

Regards,
Stefan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Rogelio
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or