From 94378a31a3508484b593286075f4d389bf9419ab Mon Sep 17 00:00:00 2001 From: Johnny Date: Mon, 26 Aug 2019 22:11:47 +0200 Subject: [PATCH] Adds correct checkbox input class when is a checkbox (or radio) (#590) Without this, the default form-input class is used which isn't styling checkboxes or radios correctly --- src/Former/Framework/TwitterBootstrap4.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Former/Framework/TwitterBootstrap4.php b/src/Former/Framework/TwitterBootstrap4.php index 5161b243..08f9b4b6 100644 --- a/src/Former/Framework/TwitterBootstrap4.php +++ b/src/Former/Framework/TwitterBootstrap4.php @@ -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)) {