Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EuiText docs] Add callout with usage instructions #5946

Merged

Conversation

miukimiu
Copy link
Contributor

@miukimiu miukimiu commented Jun 2, 2022

Summary

This PR is a follow-up on #5895 (comment) (emphasize that consumers shouldn't wrap the elements in a div).

So I basically added a callout with some usage instructions:

Screenshot 2022-06-02 at 17 20 18

I also fixed the div wrapping issue in our docs. So I searched for:

text: (
        <div>

And replaced all the divs with fragments or just removed the div in cases the elements didn't required being wrapped. These are the pages affected:

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

@miukimiu miukimiu added documentation Issues or PRs that only affect documentation - will not need changelog entries skip-changelog labels Jun 2, 2022
@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5946/

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5946/

@miukimiu miukimiu marked this pull request as ready for review June 2, 2022 16:57
Copy link
Member

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

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

The callout looks great to me, thanks for the addition! I have a further optional cleanup/suggestion for removing unnecessary wrappers, but it's not a blocker

@miukimiu miukimiu enabled auto-merge (squash) June 6, 2022 16:36
@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5946/

@miukimiu miukimiu merged commit 2cbaca5 into elastic:main Jun 6, 2022
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants