Skip to content

feat: a11y assistive opportunity (SITES-31943) #907

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

Open
wants to merge 82 commits into
base: main
Choose a base branch
from

Conversation

dianaapredaa
Copy link
Contributor

@dianaapredaa dianaapredaa commented May 28, 2025

Accessibility - Assistive technology is incompatible on site

Overview
This PR extends the existing accessibility audit worker (from feat-a11y-audit-worker) by adding individual opportunity creation functionality. The enhancement creates URL-specific accessibility opportunities alongside the existing site-wide reports.

Key Features Added

  1. Create Individual Opportunities (src/accessibility/utils/generate-individual-opportunities.js) - NEW FILE
  • Processes accessibility data to identify issues on individual URLs
  • Creates one opportunity that contains multiple suggestions (one suggestion per URL with issues)
  • Filters issues to only include tracked accessibility issue types
  • Ranks suggestions by total number of issue occurrences per URL
  • Manages opportunity lifecycle (cleanup existing, create new)
  1. Enhanced Accessibility Handler (src/accessibility/handler.js)
    Added Step 2c: Integration of individual opportunity creation in processAccessibilityOpportunities()

  2. New Opportunity Template (src/accessibility/utils/report-oppty.js)
    Added: createAccessibilityAssistiveOpportunity() - Creates 'a11y-assistive' template opportunities
    Purpose: Template for individual accessibility opportunities with assistive technology focus

  3. Enhanced Constants (src/accessibility/utils/constants.js)
    Added: new constant for 'a11y-assistive' accessibility opportunity IDs in order to track specific issue types
    Purpose: Defines which accessibility issues should generate individual opportunities

Related Issues: https://jira.corp.adobe.com/browse/SITES-31943

Alin Rauta and others added 30 commits April 14, 2025 15:47
Copy link

This PR will trigger a minor release when merged.

@iuliag iuliag added the enhancement New feature or request label May 28, 2025
@iuliag iuliag changed the title SITES-31943 feat: a11y assistive opportunity (SITES-31943) May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants