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

label and suffix_label fields seem broken #4553

Open
kevindew opened this issue May 28, 2020 · 1 comment
Open

label and suffix_label fields seem broken #4553

kevindew opened this issue May 28, 2020 · 1 comment

Comments

@kevindew
Copy link
Member

As discovered in: #4502

We provide users with an ability to set a label and it doesn't seem to have an affect on the page rendered.

As an example we define one in lib/smart_answer_flows/calculate-your-holiday-entitlement/questions/shift_worker_hours_per_shift.govspeak.erb:

However when we view the page for it there doesn't seem to be any output of it.

I can see suffix labels seem to output:

<% render_content_for :suffix_label do %>
per week
<% end %>

but I'm not sure that is entirely right based on this example note:

Screenshot 2020-05-28 at 17 27 20

Looks like this might be tied into 95f1463 where a string concatenation process was added that omitted label.

I think to resolve this issue we need to work out whether these inputs provide input. If so where do they go? if not we can delete them.

@theseanything
Copy link
Contributor

theseanything commented Mar 4, 2021

The design system has been updated with patterns to handle these labels.

This PR has adopted it for suffix labels - so that should be fixed.

However labels are a mystery - need to do a bit of digging into their original intent. Could they have been an hidden label for accessibility? We only use them for 6 questions out of all the flows and the are:

  • Days per week
  • Hours per week
  • Hours per shift
  • Days per pattern
  • Shifts per pattern
  • Weeks worked at current employer

They sound very suffix-y so could potentially convert them to either a suffix label or question hint text. Then we could just remove the label field all together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants