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

[EUI+] Polish pass on all docs callouts #8107

Merged
merged 10 commits into from
Oct 31, 2024

Conversation

cee-chen
Copy link
Member

@cee-chen cee-chen commented Oct 29, 2024

Summary

QA polish pass on EUI+'s callouts in our docs copy:

  • Removes duplicate title/children
  • Adjusts some callout type levels (e.g. making more use of the new tip callout type)
    • All accessibility-related callouts are now note levels instead of warning levels - IMO, this is friendlier and easier to read. Long term, It might be neat to add our own custom :::accessibility callout type for this with a custom icon 👀
  • General copy pass (grammar tweaks, etc.)
  • Adds a margin-top to the docusaurus theme (primarily for spacing between list elements and callouts)
  • [syntax] Removes extra wrapping newlines for mdx callouts without titles

QA

General checklist

N/A, EUI+ docs only

…elements

- particularly for `<ol>/<ul>` elements followed by a callout
…ing`s, + add accessibility-related titles

- this feels friendlier and will generally (IMO) make devs more likely to read them and consider warnings

+ fix duplicate titles/headers along the way

+ tweak copy to be more succinct in places
- use tip and danger callout types to match do/don't guidelines and better match the intention of the callout copy
- more friendly and helpful to denote callouts that are more usage guidelines or nice-to-haves

+ remove duplicate content
+ minor copy tweaks
IMO, a `warning` should be used if component UI/UX will break in some way if the warning is not read

The `info` status can be more generic, or apply to specific techncial DX
- should be using EUI components as part of the example
- the text is short enough IMO that this is easier readability
@cee-chen cee-chen added documentation Issues or PRs that only affect documentation - will not need changelog entries skip-changelog labels Oct 29, 2024
@kibanamachine
Copy link

Preview staging links for this PR:

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

@cee-chen cee-chen marked this pull request as ready for review October 29, 2024 22:20
@cee-chen cee-chen requested a review from a team as a code owner October 29, 2024 22:20
Copy link
Contributor

@mgadewoll mgadewoll left a comment

Choose a reason for hiding this comment

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

🚢 🐈‍⬛ The changes look good to me, and I agree that callout type changes make more sense this way. Thanks for addressing it! 🙏

@cee-chen cee-chen merged commit 54bf470 into elastic:main Oct 31, 2024
11 checks passed
@cee-chen cee-chen deleted the website/callouts-pass branch October 31, 2024 15:52
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.

4 participants