localgovdrupal / localgov_base

The base theme for LocalGov Drupal websites.
9 stars 15 forks source link

Missing semantic structure in quick facts section #607

Closed sgroi-l closed 1 month ago

sgroi-l commented 1 month ago

Description

The "Quick Fact" section on the service page lacks proper semantic structure. Key information is styled in a way that suggests importance but does not use appropriate semantic elements to convey its meaning.

Expected Behaviour

Actual Behaviour

How to Replicate

  1. Visit a service page, such as this example page.
  2. Locate the "Quick Facts" section.
  3. Inspect the HTML markup to verify that the section uses div elements with styling but lacks semantic elements.

WCAG Reference / Links

More details: WCAG 1.3.1 Info and Relationships

Recommendations

  1. Update the "Quick Fact" section to use appropriate semantic HTML elements.
markconroy commented 1 month ago

@sgroi-l can you test this PR please? Especially, take note of the comment in the Accessibility section in the PR.

Thanks.