User tests: Successful: Unsuccessful:
When using the btn-group-yesno
class on radio buttons in XML forms, the green btn-outline-success
is applied to options with a value other than 0
.
This causes multiple buttons to be green.
This PR fixes that and more:
btn-outline-secundary
disabled
attribute not being added to the options when using the btn-group-yesno
class.Example:
<field name="testing" type="radio" default="0"
class="btn-group btn-group-yesno"
label="Testing">
<option value="0">JNO</option>
<option value="1">JYES</option>
<option value="2">JDEFAULT</option>
</field>
Example:
<field name="testing" type="radio" default="0"
class="btn-group btn-group-yesno"
label="Testing">
<option value="0">JNO</option>
<option value="1">JYES</option>
<option value="2" class="btn btn-outline-info">JDEFAULT</option>
</field>
Status | New | ⇒ | Pending |
Category | ⇒ | Layout |
Labels |
Added:
?
|
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-04-11 16:00:28 |
Closed_By | ⇒ | chmst | |
Labels |
Added:
?
|
Thanks!
I have tested this item✅ successfully on a053b32
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33091.