USWDS - Feature: Improve heading semantics of banner component #5243
Labels
Affects: Accessibility 🟡
Relates to the accessibility of our components
Needs: Confirmation
We need to confirm that this is an issue
Package: Banner
Role: Dev
Development/engineering skills needed
Type: Feature Request
New functionality
Is your feature request related to a problem? Please describe.
The visual and informational presentation of the banner component's "Official websites use .gov" and "Secure .gov websites use HTTPS" text are such that they could be interpreted as being headings, while in reality there are no special semantics given to these texts beyond "strong" emphasis.
This was identified during a third-party accessibility audit of our site, which uses the standard USWDS banner component markup.
Relevant text from the report:
Describe the solution you'd like
Ultimately our goals are to ensure that our sites are accessible, while deferring to U.S. Web Design System to provide accessible defaults. We would like to avoid diverging from the given implementation, as this would create a disjointed user experience across government sites, as well as a burdensome developer experience to maintain the separate implementation.
A solution may be one of:
Additional context
Current component code reference: https://designsystem.digital.gov/components/banner/#component-code
Example relevant segment of code:
The expectation from the reporter may be that the
<strong>
tag used for "Official websites use .gov" should instead be a heading, e.g.h2
.Code of Conduct
The text was updated successfully, but these errors were encountered: