Skip to content

Conversation

@dlescarbeau
Copy link
Collaborator

@dlescarbeau dlescarbeau commented Nov 20, 2024

  • adds id to title, description, or image depending on elements present

  • adds aria label for list of buttons in guide card

Closes #1112

Pull Request Details

Add description

Closes #

Author PR Checklist

Items that the author of the PR is responsible for checking before submitted the PR.

General:

  • I have reviewed the acceptance criteria defined in the ticket and ensured the work has been completed.
  • The commit message passes all quality commit message standards.
  • Unit tests have been updated or created to reflect any javascript changes.
  • Storybook scenarios have been updated or created to reflect any html/css/js changes.

Accessibility:

  • WCAG 2.1 Level AA requirements have been met.

Development:

  • Any new or updated javascript code has 100% unit test coverage.
  • New or updated breakpoints have regression images.
  • Breaking changes have been thoroughly documented in the PR.

Product Reviewer PR Checklist

Items the product team is responsible for reviewing.

General:

  • There are no unexpected or unapproved regression image changes.

  • Functionality of interactive elements meet the acceptance criteria.
  • The product is visually and functionally the same across the different browsers.

Accessibility:

  • AxeDev Tools: there are no new or outstanding accessibility issues introduced in this PR.
  • Lighthouse: scores have not noticeably decreased during this PR.
  • Wave: there are no new errors or contrast errors introduced in this PR.

Design Reviewer PR Checklist

Items the design team is responsible for reviewing. 


General:

  • New or updated features introduced in this PR are developed mobile-first.
  • Breakpoint changes and regression images match those breakpoints.
  • This PR has been tested in all supported browsers at all breakpoints.

Developer Reviewer PR Checklist

Items the development team is responsible for reviewing.

General:

  • New code passes code quality standards set by industry standards.
  • The expected Storybook stories have been added or updated for the new or updated feature.
  • The expected unit tests have been added or updated for the new or updated feature.

Accessibility:

  • VoiceOver: Described content matches with what was expected.
  • Keyboard navigation: new or updated features and content are navigable via the keyboard.

@github-actions
Copy link

@dlescarbeau dlescarbeau force-pushed the ticket/1112-guide-card-aria-labels branch 2 times, most recently from e2d9dee to e194254 Compare November 20, 2024 19:14
@dlescarbeau dlescarbeau requested a review from a team as a code owner November 20, 2024 19:14
@dlescarbeau dlescarbeau force-pushed the ticket/1112-guide-card-aria-labels branch 5 times, most recently from 1896e49 to 1f04704 Compare November 21, 2024 16:55
@andyvanavery31
Copy link

Things I found:

@dlescarbeau dlescarbeau force-pushed the ticket/1112-guide-card-aria-labels branch from 1f04704 to 1313330 Compare November 21, 2024 19:59
@andyvanavery31
Copy link

Accessibility Errors:

@dlescarbeau dlescarbeau force-pushed the ticket/1112-guide-card-aria-labels branch from 1313330 to 657b489 Compare November 22, 2024 17:41
Copy link

@andyvanavery31 andyvanavery31 left a comment

Choose a reason for hiding this comment

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

Passes Product review.

<div class="nci-guide-card__body">
<h2 class="nci-guide-card__title">{{ card.title }}</h2>
<ul class="nci-card__button-group">
<h2 id="{{ card.title|replace({' ': ''}) }}" class="nci-guide-card__title">{{ card.title }}</h2>
Copy link
Contributor

Choose a reason for hiding this comment

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

have to worry about more than just spaces, you can use a built in filter instead

https://twig.symfony.com/doc/3.x/filters/url_encode.html

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@olitharp-nci this should be addressed now, good shout !

@dlescarbeau dlescarbeau force-pushed the ticket/1112-guide-card-aria-labels branch 3 times, most recently from d29356b to 48db127 Compare November 26, 2024 17:00
- adds id to title, description, or image depending on elements present

- adds aria label for list of buttons in guide card

- updates docs site page to use twig template

Closes #1112
@dlescarbeau dlescarbeau force-pushed the ticket/1112-guide-card-aria-labels branch from 48db127 to f252e71 Compare November 26, 2024 19:18
@olitharp-nci olitharp-nci merged commit 5bb4426 into develop Nov 26, 2024
3 checks passed
@olitharp-nci olitharp-nci deleted the ticket/1112-guide-card-aria-labels branch November 26, 2024 22:42
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.

CR: Add aria-labelledby and alt-text to all Guide Cards on the NCIDS

4 participants