eui icon indicating copy to clipboard operation
eui copied to clipboard

[EuiFlyout] Missing flyout title in screen reader announcement

Open alexwizp opened this issue 1 month ago • 4 comments

This PR apply the same approach to EuiFlyout that we previously implemented for EuiModal. See https://github.com/elastic/eui/pull/8954 for more details.

Changes

  • Moves the close button from the first to the last position to ensure the flyout title is the first perceivable element.

Why are we making this change?

To improve the accessible experience of flyouts by ensuring the title is announced when the flyout opens. This provides helpful context and is more useful than landing focus on the close button.

Impact to users

🟢 There are no updates required on consumer side.

ℹ️ Due to the DOM changes, it's expected that snapshots might require updates.

QA

  • Test EuiFlyout in NVDA, JAWS, and VoiceOver and verify that:
    • [ ] The title is announced when the flyout opens (either because it receives focus or because aria-labelledby is read).
    • [ ] The screen reader hint text is perceivable (either on opening the flyout in NVDA and/or as screen-reader-only text before the close button).
    • [ ] The close button is the last navigable element in the flyout.

General checklist

  • Browser QA
    • [ ] ~Checked in both light and dark modes~
    • [ ] ~Checked in both MacOS and Windows high contrast modes~
    • [ ] ~Checked in mobile~
    • [x] Checked in Chrome, Safari, Edge, and Firefox
    • [x] Checked for accessibility including keyboard-only and screenreader modes
  • Docs site QA
  • Code quality checklist
  • Release checklist
    • [x] A changelog entry exists and is marked appropriately.
    • [ ] ~If applicable, added the breaking change issue label (and filled out the breaking change checklist)~
  • Designer checklist
    • [ ] ~If applicable, file an issue to update EUI's Figma library with any corresponding UI changes. (This is an internal repo, if you are external to Elastic, ask a maintainer to submit this request)~

alexwizp avatar Nov 13 '25 14:11 alexwizp