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

ECL-252: Fix accessibility report issues #72

Merged
merged 4 commits into from
Feb 21, 2023
Merged

ECL-252: Fix accessibility report issues #72

merged 4 commits into from
Feb 21, 2023

Conversation

pangiole-hmrc
Copy link
Contributor

@pangiole-hmrc pangiole-hmrc commented Feb 15, 2023

Fix all accessibility issues by:

  • moving the h1 (header) and p (paragraph) elements to the above and outside of the form element
  • adding internationalized labels where missing
  • removing empty select items

Note: I couldn't reproduce the accessibility report on my local environment.
I'd need some help from @jamesvarghese701

  - move the `h1` (header) and `p` (paragraph) elements to the above
    and outside of the form element

  - add internationalized labels where missing

  - remove empty select items
@pangiole-hmrc pangiole-hmrc changed the title Attempt quick fix Fix all accesibility issues Feb 19, 2023
@pangiole-hmrc pangiole-hmrc marked this pull request as ready for review February 19, 2023 18:05
README.md Outdated Show resolved Hide resolved
@peter-hazell peter-hazell changed the title Fix all accesibility issues ECL-252: Fix accessibility report issues Feb 21, 2023
With the intent to pass the accessibility tests, we agreed upon adding
the `label` element with the same text content as the heading. We are
also styling it as hidden (so to put it out of sight)

Resolves: ECL-252
This commit attempts a workaround for the issue filed at
hmrc/play-frontend-hmrc#223

Resolves: ECL-252
@@ -53,7 +53,7 @@ object AmlSupervisorType {
): Seq[RadioItem] = {
val amlProfessionalBodySupervisorOptions: Seq[SelectItem] =
SelectItem(
text = ""
text = " "
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pangiole-hmrc pangiole-hmrc merged commit 30887d1 into main Feb 21, 2023
@pangiole-hmrc pangiole-hmrc deleted the ECL-252 branch February 21, 2023 11:38
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

Successfully merging this pull request may close these issues.

None yet

2 participants