Skip to content

[EuiPortal docs] Add custom flyout example - #6247

Merged
elizabetdev merged 4 commits into
elastic:mainfrom
elizabetdev:docs-portal-complex-demo
Sep 26, 2022
Merged

elizabetdev merged 4 commits into
elastic:mainfrom
elizabetdev:docs-portal-complex-demo

Conversation

@elizabetdev

@elizabetdev elizabetdev commented Sep 19, 2022 •

Copy link
Copy Markdown
Contributor

Summary

Closes #6241.

We normally recommend in our slack to override a EuiFlyout or to create one from scratch using a EuiPortal. We always point to what should be the right a11y features but we don't have an example in our docs.

So this PR, hopefully, adds an example of what a custom flyout can be with a recommend a11y.

The example can be found here: https://eui.elastic.co/pr_6247/#/utilities/portal#a-custom-flyout

Portal-Elastic-UI-Framework

Checklist

  • Checked in both light and dark modes
  • Checked in mobile
  • Checked in Chrome, Safari, Edge, and Firefox
  • Props have proper autodocs and playground toggles
  • Added documentation
  • Checked Code Sandbox works for any docs examples
  • Added or updated jest and cypress tests
  • Checked for breaking changes and labeled appropriately
  • Checked for accessibility including keyboard-only and screenreader modes
  • Updated the Figma library counterpart
  • A changelog entry exists and is marked appropriately

@elizabetdev elizabetdev added documentation Issues or PRs that only affect documentation - will not need changelog entries skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) labels Sep 19, 2022
@kibanamachine

Copy link
Copy Markdown
Contributor

@kibanamachine

Copy link
Copy Markdown
Contributor

@kibanamachine

Copy link
Copy Markdown
Contributor

@elizabetdev

Copy link
Copy Markdown
Contributor Author

jenkins test this

@kibanamachine

Copy link
Copy Markdown
Contributor

@elizabetdev
elizabetdev marked this pull request as ready for review September 21, 2022 17:41

@1Copenut 1Copenut left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the ping @miukimiu! I have a few change requests, hopefully not too much rework. Let me know if you have questions or want to discuss any of these.

<li>
Use <EuiCode>{'aria-labelledby={headingId}'}</EuiCode> to
announce the flyout to screen readers.
</li>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about adding one more <li> to call out the need for an aria-labelledby and unique ID added to the first heading in the modal? It's an important detail and a help to screen reader users.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done! ✅

@kibanamachine

Copy link
Copy Markdown
Contributor

@1Copenut 1Copenut left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Issues or PRs that only affect documentation - will not need changelog entries skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[EuiPortal docs] Add a custom modal/flyout example that meets a11y requirements

3 participants