Closed anton-yordanov closed 6 years ago
When dealing with css the order in which the classes appears in your html makes no difference. The bootstrap css declares btn-secondary
after btn-primary
so it will always take precedence.
The only fix here is to either provide a way for you to override the default classes, or provide some bootstrap friendly options for setting these classes (size, color, block etc.).
I'm leaning to the latter as I don't really want to add a load of array mutating options into the underlying element class
@anton-yordanov I've just added something to master which should work for you.
Yes, the order of the css classes makes no difference, sorry about that. Thanks for the fix.
Returns
The side effect is that
btn-secondary
class take precedence over mybtn-primary
class. I expect the custom CSS classes to be appended to the defaults and to take precedence over them.