Problem/Motivation

We are converting core button CSS classes to Bootstrap classes in bs_bootstrap input--submit template. However, we should not do this in the case of the button already have btn-primary or btn-secondary - case when custom code already attached one of these two classes.

It is highly unlikely that the submit button will have any other than this two CSS classes, so, for now, let's just check the existence of these two and not the other ones.

Comments

pivica created an issue. See original summary.

pivica’s picture

Here is a patch.

pivica’s picture

StatusFileSize
new1.36 KB

Comment type fixed.

pivica’s picture

Status: Active » Needs review
pivica’s picture

StatusFileSize
new1.4 KB
new918 bytes

And for sure we found examples where we have only btn class set but we are using custom classes to additionally style the button. It seems that we need to check for the existence of btn class also first with the other two. This would mean if developer set btn or btn-primary or btn-secondary he then knows what he is doing, which make sense i hope ;)

  • pivica committed d60f70c on 8.x-1.x
    Issue #3105185 by pivica: Check for Bootstrap primary and secondary...
pivica’s picture

Status: Needs review » Fixed
Issue tags: -next-release

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.