Skip to content

Commit

Permalink
Merge pull request #6852 from DFE-Digital/hint-text-formatting
Browse files Browse the repository at this point in the history
tweaking hint text on hiring staff side
  • Loading branch information
KyleMacPherson committed May 24, 2024
2 parents d5f7afb + e62b7e4 commit 8a45452
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/components/editor_component/editor_component.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
label class="#{label_classes}" data-action="click->editor#focus" for="#{@field_name}-field" id=@label[:id]
= @label[:text]
.govuk-hint id="#{@field_name}-hint"
= @hint.presence || "You can copy and paste any information and keep bullet point formatting."
= @hint.presence || "You can copy and paste bullet points into the text box."
.editor-component__toolbar data-editor-target="toolbar"

.editor-component__form-input data-editor-target="formInput"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
= form_for form, url: wizard_path, method: :patch do |f|
= f.govuk_error_summary

= f.govuk_text_area :personal_statement, label: { size: "s" }, rows: 15, required: true, aria: { required: true }
= f.govuk_text_area :personal_statement, label: { size: "s" }, rows: 15, required: true, aria: { required: true }, hint: { text: t(".hint") }

= f.govuk_submit job_application_build_submit_button_text do
= govuk_link_to t("buttons.cancel_and_return_to_account"), jobseekers_job_applications_path, class: "govuk-link--no-visited-state"
Expand Down
1 change: 1 addition & 0 deletions config/locales/jobseekers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ en:
title: How to write a teacher personal statement
step_title: Personal statement
title: Personal statement — Application
hint: You can copy and paste bullet points into the text box.
process_title: Application steps
professional_status:
heading: Professional status
Expand Down
2 changes: 1 addition & 1 deletion spec/components/editor_component_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
render_inline(described_class.new(**kwargs))
end
it "renders a default hint text" do
expect(page).to have_css("div", class: "govuk-hint", text: "You can copy and paste any information and keep bullet point formatting.")
expect(page).to have_css("div", class: "govuk-hint", text: "You can copy and paste bullet points into the text box.")
end
end
end

0 comments on commit 8a45452

Please sign in to comment.