From 7f529c306a558666c9d8d78ef88bc8a5092f2bd0 Mon Sep 17 00:00:00 2001 From: Jonas S Date: Mon, 3 Jun 2024 17:27:48 +0200 Subject: [PATCH] =?UTF-8?q?Bootstrap=205.3:=20Deprecated=20the=20.text-mut?= =?UTF-8?q?ed=20utility=20and=20$text-muted=20Sass=20variable.=20It?= =?UTF-8?q?=E2=80=99s=20been=20replaced=20by=20.text-body-secondary=20and?= =?UTF-8?q?=20$body-secondary-color.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://getbootstrap.com/docs/5.3/migration/ --- OLD-README.md | 2 +- README.md | 6 +++--- lib/bootstrap_form/components/hints.rb | 2 +- test/bootstrap_checkbox_test.rb | 2 +- test/bootstrap_fields_test.rb | 2 +- test/bootstrap_form_group_test.rb | 10 +++++----- test/bootstrap_form_test.rb | 8 ++++---- test/bootstrap_radio_button_test.rb | 10 +++++----- test/bootstrap_selects_test.rb | 2 +- 9 files changed, 22 insertions(+), 22 deletions(-) diff --git a/OLD-README.md b/OLD-README.md index 8e03c7dbf..98c41f36d 100644 --- a/OLD-README.md +++ b/OLD-README.md @@ -110,7 +110,7 @@ This generates:
- A good password should be at least six characters long + A good password should be at least six characters long
diff --git a/README.md b/README.md index 3780d6c98..b57a93caf 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,7 @@ This generates:
- A good password should be at least six characters long + A good password should be at least six characters long
@@ -368,7 +368,7 @@ This generates:
- Must be at least 6 characters long + Must be at least 6 characters long
``` @@ -607,7 +607,7 @@ This generates:
- Optional Help Text + Optional Help Text
diff --git a/lib/bootstrap_form/components/hints.rb b/lib/bootstrap_form/components/hints.rb index afd004265..57e608c66 100644 --- a/lib/bootstrap_form/components/hints.rb +++ b/lib/bootstrap_form/components/hints.rb @@ -10,7 +10,7 @@ module Hints def generate_help(name, help_text) return if help_text == false - help_klass ||= "form-text text-muted" + help_klass ||= "form-text text-body-secondary" help_text ||= get_help_text_by_i18n_key(name) help_tag ||= :small diff --git a/test/bootstrap_checkbox_test.rb b/test/bootstrap_checkbox_test.rb index 7fb61ce6e..6871f26b7 100644 --- a/test/bootstrap_checkbox_test.rb +++ b/test/bootstrap_checkbox_test.rb @@ -177,7 +177,7 @@ class BootstrapCheckboxTest < ActionView::TestCase
- With a help! + With a help!
HTML diff --git a/test/bootstrap_fields_test.rb b/test/bootstrap_fields_test.rb index c936554f1..123162ccb 100644 --- a/test/bootstrap_fields_test.rb +++ b/test/bootstrap_fields_test.rb @@ -158,7 +158,7 @@ class BootstrapFieldsTest < ActionView::TestCase
- A good password should be at least six characters long + A good password should be at least six characters long
HTML assert_equivalent_html expected, @builder.password_field(:password) diff --git a/test/bootstrap_form_group_test.rb b/test/bootstrap_form_group_test.rb index c206358cb..8e6460ae2 100644 --- a/test/bootstrap_form_group_test.rb +++ b/test/bootstrap_form_group_test.rb @@ -201,7 +201,7 @@ class BootstrapFormGroupTest < ActionView::TestCase
- This is required + This is required
HTML assert_equivalent_html expected, @builder.text_field(:email, help: "This is required") @@ -213,7 +213,7 @@ class BootstrapFormGroupTest < ActionView::TestCase
- This is required + This is required
HTML @@ -225,7 +225,7 @@ class BootstrapFormGroupTest < ActionView::TestCase
- A good password should be at least six characters long + A good password should be at least six characters long
HTML assert_equivalent_html expected, @builder.text_field(:password) @@ -246,7 +246,7 @@ class BootstrapFormGroupTest < ActionView::TestCase
- A good password should be at least six characters long + A good password should be at least six characters long
HTML assert_equivalent_html expected, @builder.text_field(:password) @@ -488,7 +488,7 @@ class BootstrapFormGroupTest < ActionView::TestCase
can't be blank, is too short (minimum is 5 characters)
- This is required + This is required HTML diff --git a/test/bootstrap_form_test.rb b/test/bootstrap_form_test.rb index 10628e970..16b2ce355 100644 --- a/test/bootstrap_form_test.rb +++ b/test/bootstrap_form_test.rb @@ -738,7 +738,7 @@ def warn(message, ...)
can't be blank, is too short (minimum is 5 characters)
- This is required + This is required HTML @@ -764,7 +764,7 @@ def warn(message, ...)
can't be blank, is too short (minimum is 5 characters)
- This is required + This is required HTML @@ -785,7 +785,7 @@ def warn(message, ...)
- This is required + This is required
HTML @@ -805,7 +805,7 @@ def warn(message, ...)
- This is useful help + This is useful help
HTML diff --git a/test/bootstrap_radio_button_test.rb b/test/bootstrap_radio_button_test.rb index 5b22b9791..422e03cc4 100644 --- a/test/bootstrap_radio_button_test.rb +++ b/test/bootstrap_radio_button_test.rb @@ -151,7 +151,7 @@ class BootstrapRadioButtonTest < ActionView::TestCase Foobar - With a help! + With a help! HTML @@ -253,7 +253,7 @@ class BootstrapRadioButtonTest < ActionView::TestCase - With a help! + With a help! HTML @@ -271,7 +271,7 @@ class BootstrapRadioButtonTest < ActionView::TestCase - With a help! + With a help! HTML @@ -328,7 +328,7 @@ class BootstrapRadioButtonTest < ActionView::TestCase - With a help! + With a help! HTML @@ -346,7 +346,7 @@ class BootstrapRadioButtonTest < ActionView::TestCase - With a help! + With a help! HTML diff --git a/test/bootstrap_selects_test.rb b/test/bootstrap_selects_test.rb index 38ceb731a..ab33fafbf 100644 --- a/test/bootstrap_selects_test.rb +++ b/test/bootstrap_selects_test.rb @@ -70,7 +70,7 @@ def options_range(start: 1, stop: 31, selected: nil, months: false) - Help! + Help! HTML assert_equivalent_html expected,