Repository navigation
[EuiMarkdownFormat] Added a spacer plugin - #5059
elizabetdev wants to merge 8 commits into
Conversation
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_5059/ |
|
[discussion] I'm not sure explicitly adding spacers is the right approach. In the second example, increasing the padding/margin before the next heading is likely better done by applying more margin to titles through component mapping to intercept headings and apply extra styling. For the first example, if an app needed that extra spacing I could see them re-defining the |
|
Agreed and I'll note another option I thought of which is to allow the markdown renderer to "respect whitespace". Meaning that if there were 5 white-space line-breaks in the editor, it would render 5 |
|
Related: #5141 |
|
I'm closing this PR. I'll come up with a different solution. |
Summary
This PR adds a EuiSpacer plugin to EuiMarkdownFormat.
The EuiMarkdownFormat can be used outside of the EuiMarkdownEditor for example to render content like documentation. For this type of content, we need a way to add spacers. So I decided to create a plugin that adds a EuiSpacer with the ability to control the size prop.
Also, I'm improving and simplifying the Getting Started page by adding spaces, removing duplicated content and providing links to our wiki files.
Checklist
[ ] Check against all themes for compatibility in both light and dark modes[ ] Checked in mobile[ ] Props have proper autodocs and playground toggles[ ] Checked Code Sandbox works for the any docs examples[ ] Checked for breaking changes and labeled appropriately[ ] Checked for accessibility including keyboard-only and screenreader modes