-
Notifications
You must be signed in to change notification settings - Fork 841
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+] Initial typography and doc content updates #7848
[EUI+] Initial typography and doc content updates #7848
Conversation
c78d6c2
to
239668d
Compare
Preview staging links for this PR:
|
💚 Build Succeeded
History
|
@@ -4,10 +4,10 @@ slug: /guidelines/testing | |||
id: testing-introduction | |||
--- | |||
|
|||
<p style={{ fontSize: '22px' }}> | |||
<div style={{ fontSize: '22px' }}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may need to address this since document subtitles would need to be p
tags
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The output for any text is as a <p>
. That's why it resulted in a p
nested in another p
tag.
We might want to use a separate component for applying font style changes in the mdx files instead of inline styles?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look great! We can address some of the things like the subtitle p tag in a separate PR.
Summary
closes: elastic/eui-private#113
relates to #7822
Important
Parts of this PR (anything related to the ColorModeToggle) was added as a separate PR here but kept in this PR as well for testing purposes. That previous PR for ColorModeToggle should be reviewed and merged before this one.Update: The PR was merged and this PR rebased.This PR updates the base global styles for the new EUI+ docs and additionally adds the first style updates for doc content components.
Changes:
MDXContent
(wrap) and updates it to useEuiText
+ custom EUI+ adjustments to ensure markdown content styling (text, lists etc)DocItem/Content
(wrap) and adds custom styles for the document headingMDXComponents/A
andMDXComponents/Code
(wrap) and uses Eui components instead (EuiLink
andEuiCode
/EuiCodeBlock
)MDXComponents/Heading
and uses a wrappingEuiText
to apply EUI heading stylesCallOut
component and uses it to wrap Docusaurus admonition components (Note, Info, Tip, Warning, Danger) and apply custom stylesFooter
component theme to ensure static dark theme (independent from globalcolorMode
)QA
gh pr checkout 7848
, build the theme in/packages/docusaurus-theme
withyarn build
and run the EUI+ docs page inpackages/website
withyarn start