Skip to content

[EuiModal] Wrap EuiModalHeaderTitle in H1 unless an escape hatch prop is passed #6531

Closed

Description

@1Copenut

Description

We've had a few reports of Kibana modal headers that have stopped rendering a proper H1 title. This regression is related to the following items:

During a Slack discussion with @cee-chen and @jen-huang we determined it would be worthwhile to automatically wrap the children prop with an H1 tag unless developers passed an escape hatch prop to render children exactly as they've written it.

WCAG guidance

Tasks

  • Write an escape hatch prop to add to EuiModalHeaderTitle logic for overriding the H1 wrapper for children
  • Add unit tests to evaluate standard modal, confirmation modal with and without H1 wrapper
  • Update the Confirm Modal documentation to provide awareness of this logic

Kibana confirmation modals with H1 not rendered
image


EUI Docs for Confirmation Modal
Screen Shot 2023-01-17 at 4 14 06 PM

Activity

  1. added
    breaking change
    on Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibilitybreaking change

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions