Skip to content

Commit 2631f3e

Browse files
committed
Make Checkbox example with a hint work again
1 parent 7ee7fbf commit 2631f3e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

demo/test/components/previews/checkbox_preview.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def disabled_checked_check_box
5555
# the checkbox component.
5656

5757
def checkbox_with_helper_text
58-
render(Flowbite::InputField::Checkbox.new(attribute: :confirmation, form: form, hint: "I agree with the terms and conditions."))
58+
render(Flowbite::InputField::Checkbox.new(attribute: :confirmation, form: form, hint: {content: "I agree with the terms and conditions."}))
5959
end
6060

6161
# @!endgroup

demo/test/components/previews/radio_button_preview.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def disabled_checked_radio_button
5050
# the checkbox component.
5151

5252
def checkbox_with_helper_text
53-
render(Flowbite::InputField::RadioButton.new(attribute: :state, form: form, value: "visible", hint: "I agree with the terms and conditions."))
53+
render(Flowbite::InputField::RadioButton.new(attribute: :state, form: form, value: "visible", hint: {content: "I agree with the terms and conditions."}))
5454
end
5555

5656
# @!endgroup

0 commit comments

Comments
 (0)