Skip to content

Consent notice title is hardcoded to H2 (Accessibility/SEO issue) #554

@bbruno286

Description

@bbruno286

HTML Code of Page

<h2 id="id-cookie-title">We are glad you are here!</h2>

Current behavior

Checking consent-notice.jsx, I can see that the title element (#id-cookie-title) is hardcoded to an <h2 /> element.

<h2 id="id-cookie-title">
    {t(['consentNotice', 'title'])}
</h2>

This can generate an accessibility/SEO issue: non-sequential heading structure, and overall has no way of being adaptable to a website's current heading structure.

Expected behavior

We should use a standard <div />, still styled as the current title. This is not a typically accessed part of the page or content, so having a heading here does not seem to be required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions