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

usagov-2120-page-region-attribute: update logic to remove role attrib… #2120

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

developer43
Copy link
Contributor

@developer43 developer43 commented Dec 13, 2024

…ute if no image is chosen

Jira Task

https://cm-jira.usa.gov/browse/USAGOV-2120

Description

Update code logic to remove role=“region” and area-label for alert box with no image or title

Type of Changes

  • New Feature
  • Bugfix
  • Frontend (Twig, Sass, JS)
    • Add screenshot showing what it should look like
  • Drupal Config (requires "drush cim")
  • New Modules (requires rebuild)
  • Documentation
  • Infrastructure
    • CMS
    • WAF
    • WWW
    • Egress
    • Tools
    • Cron
  • Other

Testing Instructions

Change Requirements

  • Requires New Documentation (Link: {})
  • Requires New Config
  • Requires New Content

Validation Steps

  • Goto http://localhost/voter-registration-card and inspect the info alert box to verify that the code contains role="region"
    and aria-label="info". This alert box should contain an image and a title.
Screenshot 2024-12-13 at 9 35 18 AM
  • Goto https://www.usa.gov/adjustment-of-status and inspect the alert box with the gray left bar in the content area to verify that the code does not contain role="region" and aria-label="info". This alert box should contain no image or title.
Screenshot 2024-12-13 at 9 34 48 AM Screenshot 2024-12-13 at 9 35 57 AM Screenshot 2024-12-13 at 9 37 07 AM

Security Review

  • Adds/updates software (including a library or Drupal module)
  • Communication with external service
  • Changes permissions or workflow
  • Requires SSPP updates

Reviewer Reminders

  • Reviewed code changes
  • Reviewed functionality
  • Security review complete or not required

Post PR Approval Instructions

Follow these steps as soon as you merge the new changes.

  1. Go to the USAGov Circle CI project.
  2. Find the commit of this pull request.
  3. Build and deploy the changes.
  4. Update the Jira ticket by changing the ticket status to Review in Test and add a comment. State whether the change is already visible on cms-dev.usa.gov and beta-dev.usa.gov, or if the deployment is still in process.

Copy link
Member

@akf akf left a comment

Choose a reason for hiding this comment

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

This is all good, but I think we need the aria-labels to be in Spanish when the page is in Spanish.

Right now, this uses the same text in the aria-label as in the alert class. We probably need a little table of translations as well.

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.

3 participants