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+] Implement sidebar style changes #7880

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

mgadewoll
Copy link
Contributor

@mgadewoll mgadewoll commented Jul 10, 2024

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

  • updates styles for the website navigation sidebar (left)
  • updates styles for the table-of-content (TOC) sidebar (right)
  • adds temporary fallback solution to load Root.tsx content only after mount to prevent Emotion styles popping in after the Docusaurus SSR styles and causing noticable layout shifts

Note

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)

Screenshot 2024-07-10 at 17 17 55

Screenshots

Screenshot 2024-07-11 at 10 44 45

Screenshot 2024-07-11 at 10 44 37

Screenshot 2024-07-11 at 10 45 28

Screenshot 2024-07-11 at 10 45 40

QA

@mgadewoll mgadewoll marked this pull request as ready for review July 11, 2024 10:12
@mgadewoll mgadewoll requested a review from a team as a code owner July 11, 2024 10:12
@mgadewoll mgadewoll force-pushed the eui+/7865-sidebar-design-changes branch from 22f0b31 to f19c671 Compare July 11, 2024 13:27
@tkajtoch tkajtoch self-requested a review July 15, 2024 16:52
@mgadewoll mgadewoll force-pushed the eui+/7865-sidebar-design-changes branch from f19c671 to dc3d894 Compare July 17, 2024 08:15
Copy link
Member

@tkajtoch tkajtoch 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 are looking great! Thanks for adding a hotfix for the flash of unstyled content related to SSR and Emotion!

@mgadewoll mgadewoll force-pushed the eui+/7865-sidebar-design-changes branch from dc3d894 to 8fe3164 Compare July 18, 2024 17:21
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[New docs] Implement sidebar design changes
3 participants