uswds / uswds-site

USWDS website and documentation
https://designsystem.digital.gov
Other
183 stars 140 forks source link

USWDS-Site - Bug: UnLighthouse.dev ARIA #2148

Open mgifford opened 1 year ago

mgifford commented 1 year ago

Describe the bug

I ran https://unlighthouse.dev/ on the https://designsystem.digital.gov/ site and discovered a few accessibility problems. As I said 2147 , it is really quite good, seems that there are a few here:

Screenshot of ARIA issues

The troublesome domains seem to be under /together /patterns & /next

Steps to reproduce the bug

From the command line run: % npx unlighthouse --site https://designsystem.digital.gov/

and sort the results by accessibility & ARIA.

Expected Behavior

There shouldn't be any ARIA errors.

Screenshots

No response

System setup

No response

Additional context

No response

Code of Conduct

amyleadem commented 11 months ago

Confirming that unlighthouse does flag accessibility errors on 12 of our pages. The tool scanned 156 pages. The lowest accessibility score it flagged was 92. The overall accessibility score for the site was 100.

image

These are all of the pages where an accessibility score of less than 100 was reported. The errors seem confined to /next, /together, and /patterns:

amyleadem commented 11 months ago

This issue includes the color contrast errors found in https://github.com/uswds/uswds-site/issues/2147

mejiaj commented 11 months ago

@amyleadem @mgifford thanks for looking into this.

It's hard to tell what the scope of issues and possible fixes are. What are the most glaring errors and what types of fixes are we looking at? We should break this issue up if level of effort is high.

amyleadem commented 11 months ago

@mejiaj @mgifford I have added some notes to my earlier comment with specifics on the flagged errors. It seems as there are only three errors shared across these pages. They all seem like fixes that require a relatively low level of effort.

  1. Color contrast issues on some /next pages (also flagged in #2147)
  2. Invalid roles on citation notes
  3. Mismatched aria roles in component code samples on a couple patterns pages