-
Notifications
You must be signed in to change notification settings - Fork 821
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+] Implement sidebar style changes #7880
Open
mgadewoll
wants to merge
8
commits into
elastic:main
Choose a base branch
from
mgadewoll:eui+/7865-sidebar-design-changes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[EUI+] Implement sidebar style changes #7880
mgadewoll
wants to merge
8
commits into
elastic:main
from
mgadewoll:eui+/7865-sidebar-design-changes
Conversation
This file contains 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
22f0b31
to
f19c671
Compare
f19c671
to
dc3d894
Compare
tkajtoch
approved these changes
Jul 17, 2024
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 are looking great! Thanks for adding a hotfix for the flash of unstyled content related to SSR and Emotion!
- adds temporary solution to render content only after mount to prevent noticable style updates from SSR to client side styles
- we prevent the styles update flash by hiding the content instead of not rendering it
dc3d894
to
8fe3164
Compare
💚 Build Succeeded
History
|
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
closes #7865
Note
This PR includes changes that were already done in this previous PR as the changes were required to ensure proper development. Once the previous PR is merged this current PR will be rebased.This PR is up-to-date and only includes new changes.Changes
Root.tsx
content only after mount to prevent Emotion styles popping in after the Docusaurus SSR styles and causing noticable layout shiftsNote
There are slight differences between implementation and the available initial design for the desktop navigation sidebar. The design shows decorative status lines for nested nav items, but it's not clear from the designs what the logic is for those as it's only added for a single category.
After aligning with Design, we decided to exclude this style (at least until decided otherwise)
Screenshots
QA