Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it clearer how to set hint text on checkboxes #467

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions guide/lib/examples/checkboxes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ def checkbox_field
departments,
:id,
:name,
legend: { text: "Which department do you work in?" }
caption: nil,
legend: { text: "Which departments do you work in?" },
hint: { text: "Select all departments that apply" }

SNIPPET
end

Expand All @@ -17,7 +20,8 @@ def checkbox_field_with_hints
:id,
:name,
:description,
legend: { text: "What is your preferred lunch option?" }
hint: { text: "Select all options you are happy to eat" },
legend: { text: "What are your preferred lunch options?" }
SNIPPET
end

Expand Down
Loading