Skip to content

Commit

Permalink
Adds correct checkbox input class when is a checkbox (or radio) (#590)
Browse files Browse the repository at this point in the history
Without this, the default form-input class is used which isn't styling checkboxes or radios correctly
  • Loading branch information
CedNet authored and claar committed Aug 26, 2019
1 parent 81f0969 commit 94378a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Former/Framework/TwitterBootstrap4.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ public function getFieldClasses(Field $field, $classes)
{
// Add inline class for checkables
if ($field->isCheckable()) {
// Adds correct checkbox input class when is a checkbox (or radio)
$field->addClass('form-check-input');
$classes[] = 'form-check';

if (in_array('inline', $classes)) {
Expand Down

0 comments on commit 94378a3

Please sign in to comment.