Repository navigation
[#8190] [EUI+] Missing Utilities content - #8348
Closed
weronikaolejniczak wants to merge 5 commits into
Closed
weronikaolejniczak wants to merge 5 commits into
weronikaolejniczak wants to merge 5 commits into
Conversation
33 tasks done
Contributor
Collaborator
💚 Build Succeeded
|
Contributor
|
Hi @weronikaolejniczak! This PR feels too large to be reviewed as a single piece. We usually try to have up to 1k changed lines per PR. Do you think it would be possible to split it into smaller chunks? If there are any change requests, it might take a long time to get them all sorted out, and they would block this PR from being merged. It'll also be far easier to review your work as a team and not have a single reviewer who'd need to review it all file by file. |
Contributor
Author
|
@tkajtoch Thank you for the feedback! I agree, I will close this PR then and open one PR per page. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#8190
I added the Utilities section to the new docs. The docs should have content parity except for any "Sass" references, including the dynamic section on the Scroll page.
Potential improvements
I outlined in the ticket possible improvements and created appropriate issues in M1/M2:
Additionally, I created issues for UX improvements:
It's also worth to point out that locally the error gets caught and the red screen appears when accessing Utilities > Error Boundary. This likely won't happen in staging and production because it's not a development environment, therefore doesn't display the red screen. For better DX though, this could be improved to not be caught by the upper-most Error Boundary.
Fixing examples
ReferenceError: exports is not definedI came to a conclusion that you can only export default in a
<Demo>component. You cannot use named exports and you cannot use them alongside export default. Otherwise, the preview will throw "exports is not defined".ReferenceError: require is not definedImporting a locally defined component from within the
<Demo>component doesn't work. It's better to provide it in thescopeprop.<Demo>scopepropcsspropAt times, the styles are not as expected in the
.mdxfiles. It turns out that Emotioncssworks only in.tsxfiles, otherwise in MDX we can leveragestyle.QA
Checklist:
Pages to test: