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

VACMS-19375: Fix for undefined anchor links. #20094

Merged
merged 2 commits into from
Dec 13, 2024

Conversation

anantais
Copy link
Contributor

Description

Closes #19375

Testing done

Went to various pages within the CMS and navigated anchor links using the tab key. Verified that, on click, anchor link was defined and did not lose focus.

Screenshots

QA steps

What needs to be checked to prove this works? Tab though and click anchor links
What needs to be checked to prove it didn't break any related things?
What variations of circumstances (users, actions, values) need to be checked?

As user uid with user_role

  1. Navigate to the home page in the CMS
  2. Click on the VA logo in the upper left corner
  3. Tab and click on the "Skip to main content" link
  4. Verify that the url is now appended by #main-content
  5. Verify that tabbing further brings you into the main content section (VACO, NCA, etc)

Definition of Done

  • Documentation has been updated, if applicable.
  • Tests have been added if necessary.
  • Automated tests have passed.
  • Code Quality Tests have passed.
  • Acceptance Criteria in related issue are met.
  • Manual Code Review Approved.
  • If there are field changes, front end output has been thoroughly checked.

Select Team for PR review

  • CMS Team
  • Public websites
  • Facilities
  • User support
  • Accelerated Publishing

Is this PR blocked by another PR?

  • DO NOT MERGE

Does this PR need review from a Product Owner

  • Needs PO review

CMS user-facing announcement

Is an announcement needed to let editors know of this change?

  • Yes, and it's written in issue ____ and queued for publication.
    • Merge and ping the UX writer so they are ready to publish after deployment
  • Yes, but it hasn't yet been written
    • Don't merge yet -- ping the UX writer to write and queue content
  • No announcement is needed for this code change.
    • Merge & carry on unburdened by announcements

@anantais anantais requested review from a team as code owners December 13, 2024 17:25
@va-cms-bot va-cms-bot temporarily deployed to Tugboat December 13, 2024 17:25 Destroyed
Copy link

Checking composer.lock changes...

@github-actions github-actions bot added the CMS Team CMS Product team that manages both editor exp and devops label Dec 13, 2024
srancour
srancour previously approved these changes Dec 13, 2024
Copy link
Contributor

@srancour srancour left a comment

Choose a reason for hiding this comment

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

Great work! Crazy that it was such a small thing causing this issue!

@va-cms-bot va-cms-bot temporarily deployed to Tugboat December 13, 2024 21:07 Destroyed
Copy link

Checking composer.lock changes...

@anantais
Copy link
Contributor Author

Great work! Crazy that it was such a small thing causing this issue!

It really is kind of crazy. Which is why I am adding a comment to this to (hopefully) save future devs some pain.

@va-cms-bot
Copy link
Collaborator

Cypress Accessibility Violations

/test-data-omnis

ID: button-name
Impact: critical
Tags: cat.name-role-value, wcag2a, wcag412, section508, section508.22.a, ACT, TTv5, TT6.a
Description: Ensures buttons have discernible text
Help: Buttons must have discernible text
Nodes:

  • HTML: <button class="proofing-element-help" role="tooltip" data-proofing-help-title="About 'Page introduction' field" data-proofing-help="Add an introduction that helps visitors understand if information on the page is relevant to them."> <span aria-hidden="true">i</span> </button>
    Impact: critical
    Target: .field--name-field-intro-text-limited-html > .field__label > .proofing-element-help[role="tooltip"]
    Summary: Fix any of the following:
    Element does not have inner text that is visible to screen readers
    aria-label attribute does not exist or is empty
    aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
    Element has no title attribute
    Element's default semantics were not overridden with role="none" or role="presentation"

  • HTML: <button class="proofing-element-help" role="tooltip" data-proofing-help-title="About 'Generate a table of contents from major headings' field" data-proofing-help="By checking this box, all h2's below this point on the page will be linked with with anchor links. This helps users navigate content on very long pages. Do not check this box unless there is at least 2 h2's on the page.">
    Impact: critical
    Target: .field--name-field-table-of-contents-boolean > .field__label > .proofing-element-help[role="tooltip"]
    Summary: Fix any of the following:
    Element does not have inner text that is visible to screen readers
    aria-label attribute does not exist or is empty
    aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
    Element has no title attribute
    Element's default semantics were not overridden with role="none" or role="presentation"

  • HTML: <button class="proofing-element-help" role="tooltip" data-proofing-help-title="About 'Main content' field" data-proofing-help="The main body of the page, which appears below the featured content."> <span aria-hidden="true">i</span> </button>
    Impact: critical
    Target: button[data-proofing-help-title="About 'Main content' field"]
    Summary: Fix any of the following:
    Element does not have inner text that is visible to screen readers
    aria-label attribute does not exist or is empty
    aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
    Element has no title attribute
    Element's default semantics were not overridden with role="none" or role="presentation"

@anantais anantais requested a review from srancour December 13, 2024 21:47
@anantais anantais merged commit 96db4ed into main Dec 13, 2024
18 checks passed
@anantais anantais deleted the VACMS-19375-defect-5---critical---skip-to-main-content branch December 13, 2024 22:11
omahane pushed a commit that referenced this pull request Dec 18, 2024
* VACMS-19375: Fix for undefined anchor links.

* VACMS-19375: Added comment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMS Team CMS Product team that manages both editor exp and devops
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Defect 5 - Critical - Skip to Main Content
3 participants