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

Add guidance on using longer supporting text for questions #1716

Merged
merged 1 commit into from
Sep 27, 2021

Conversation

christopherthomasdesign
Copy link
Member

What

New guidance to explain how to structure a question page when you need to explain the question in more depth than is appropriate for hint text.

Why

We've seen this come up as a discussion point on Slack a few times. We've also seen lots of examples of hint text that is too long to be read out by a screen reader every time a user focuses on the related input.

Questions

The example we used was from 'apply from teacher training'. It's quite a good one, although the explanatory text is arguably a bit on the short side. Could those sentences reasonably be hint text?

Screenshot 2021-06-10 at 10 56 18

I think it's borderline. If anyone's found an example that might explain the approach better, please suggest one!

@netlify
Copy link

netlify bot commented Jun 10, 2021

✔️ You can preview this change here:

🔨 Explore the source changes: 0b2cc6f

🔍 Inspect the deploy log: https://app.netlify.com/sites/govuk-design-system-preview/deploys/6151c9c1f0c2ef000701107e

😎 Browse the preview: https://deploy-preview-1716--govuk-design-system-preview.netlify.app

@joelanman
Copy link
Contributor

joelanman commented Jun 10, 2021

Agree that example is short enough to be hint. Agree on the problem - that very long hint text can be verbose via a screen reader, but equally if we can keep them relatively short and marked up as hints, we should because screen reader users won't miss them by tabbing to the form fields.

I'd suggest possibly the Open Register question on Register to Vote, though we'd need to agree with them that it should update to this pattern:

Do you want to opt out of the ‘open register’? The electoral register lists the name and address of everyone who’s registered to vote. There are 2 versions of the electoral register - the full version and the ‘open register’ (‘edited register’ in Northern Ireland). You can opt out of the open register. This is the version of the register that’s available to anyone who wants to buy a copy. Opting out will not affect your right to vote. Checkbox I do not want my name and address to appear in the open register. About the 2 versions of the electoral register. Continue

@frankieroberto
Copy link
Contributor

Looks good! I’ve definitely used the approach of having h1, then guidance, then label/legend in a couple of services, instead of having long hint text.

The one tricky thing is finding alternative wording for the h1 vs the label/legend, as often they're saying essentially the same thing. One option is to have one version be in question form ("Why do you want to nominate this person?") and the other one be a shorter non-question form ("Nomination reason").

I wonder whether it would be better to make the example be a page that includes a textarea or input? I'm not sure whether or not it would be ok to have guidance text between a legend and a set of radios or checkboxes?

@htmlandbacon
Copy link
Contributor

htmlandbacon commented Aug 23, 2021

I wonder whether it would be better to make the example be a page that includes a textarea or input? I'm not sure whether or not it would be ok to have guidance text between a legend and a set of radios or checkboxes?

I've seen a couple of radio examples using this format:

Heading

Paragraph

Paragraph

Hidden legend, duplicate of the heading
Yes - Radio button
No - Radio button

Which means you have to scroll back up to get the question on mobile / the error looks a bit off

@christopherthomasdesign christopherthomasdesign changed the title Add guidance on using longer hint text Add guidance on using longer supporting text for questions Sep 7, 2021
@christopherthomasdesign
Copy link
Member Author

Thanks @frankieroberto and @htmlandbacon! I think we agree with your comments and suggestions. I was wondering if either of you had any more examples you could share of pages using this kind of pattern? Anecdotally I've seen loads but struggling to find a good one now that we need to use something specific! Anything you could share would be a big help. Cheers.

@frankieroberto
Copy link
Contributor

@christopherthomasdesign here's an example from our service. Longish guidance text which includes a link. h1 and legend are essentially the same, but the latter formed as a question.

Screenshot 2021-09-07 at 13 56 43

@frankieroberto
Copy link
Contributor

@christopherthomasdesign another example from our service. This one also uses hint text on one of the radio answers.

Screenshot 2021-09-07 at 13 58 20

@christopherthomasdesign
Copy link
Member Author

Thanks for the examples @frankieroberto – I may use the first one if that's ok with you?

Copy link
Contributor

@frankieroberto frankieroberto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! Left some small comments.

src/patterns/question-pages/index.md.njk Outdated Show resolved Hide resolved
src/patterns/question-pages/index.md.njk Outdated Show resolved Hide resolved
src/patterns/question-pages/index.md.njk Outdated Show resolved Hide resolved
Copy link
Contributor

@trang-erskine trang-erskine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks fine.

Copy link
Member

@lfdebrux lfdebrux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 🙌

@EoinShaughnessy
Copy link
Contributor

Thanks for all your help with this, @htmlandbacon and @frankieroberto - we really appreciate it. Looks like a great improvement.

@EoinShaughnessy EoinShaughnessy added documentation User requests new documentation or improvements to existing documentation guidance 🕔 weeks labels Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility documentation User requests new documentation or improvements to existing documentation guidance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show users how to structure complex questions without using hint text
8 participants