Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

Hidden label removes issue#407

Open
AbuNavsa wants to merge 1 commit intomainfrom
FS-3729-DPIF-Label-Fix
Open

Hidden label removes issue#407
AbuNavsa wants to merge 1 commit intomainfrom
FS-3729-DPIF-Label-Fix

Conversation

@AbuNavsa
Copy link
Copy Markdown

@AbuNavsa AbuNavsa commented Nov 23, 2023

FS-3729 Form runner - Critical accessibility issue in Roles and recruitment form DPIF (Form elements must have labels)

Added label but also hidden it using CSS as prototype does not display a hint

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

  • Tested locally

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation and versioning
  • I have updated the architecture diagrams as per Contribute.md OR added an architectural decision record entry

@AbuNavsa AbuNavsa self-assigned this Nov 23, 2023
@tferns
Copy link
Copy Markdown

tferns commented Nov 24, 2023

Where does the styling come from?

"type": "NumberField",
"title": "What is the estimated cost of backfilling roles?",
"hint": "<label for=\"KEnthg\" class=\"govuk-hint\" style=\"display: none;\">Amount in pounds</label>"
"hint": "<label for=\"KEnthg\" style=\"position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;\">What is the estimated cost of backfilling roles?</label>"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can you double check if the text of this needed changing or if you needed to include an aria

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Jira ticket has accessibility report with soltions in it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants