Open smaddock opened 4 years ago
1.1.0
https://demos.creative-tim.com/impact-design-system-pro/dashboard/pages/maps/vector.html
macOS 10.15.4
Mac
Chrome 84
Since the window is at the XL breakpoint, the page loads with the sidebar expanded.
At this exact pixel width, the sidebar loads visible but collapsed into the narrow view.
Additionally, when the content length does not exceed the viewport (no scrollbar needed), the edges of the sidebar menu items' text is visible.
Fix the JS trigger so the g-sidenav-hidden class is added to the body on short pages
g-sidenav-hidden
OR
Fix the breakpoint for the sidebar so the g-sidenav-show and g-sidenav-pinned classes are added to the body at 1200px as they are > 1201px
g-sidenav-show
g-sidenav-pinned
I'm guessing the sidebar-state cookie could create additional conditions for this bug, but I haven't tested that.
Hey @smaddock,
Thanks for the ticket. This will be addressed in the next update!
Version
1.1.0
Reproduction link
https://demos.creative-tim.com/impact-design-system-pro/dashboard/pages/maps/vector.html
Operating System
macOS 10.15.4
Device
Mac
Browser & Version
Chrome 84
Steps to reproduce
What is expected?
Since the window is at the XL breakpoint, the page loads with the sidebar expanded.
What is actually happening?
At this exact pixel width, the sidebar loads visible but collapsed into the narrow view.
Additionally, when the content length does not exceed the viewport (no scrollbar needed), the edges of the sidebar menu items' text is visible.
Solution
Fix the JS trigger so the
g-sidenav-hidden
class is added to the body on short pagesOR
Fix the breakpoint for the sidebar so the
g-sidenav-show
andg-sidenav-pinned
classes are added to the body at 1200px as they are > 1201pxAdditional comments
I'm guessing the sidebar-state cookie could create additional conditions for this bug, but I haven't tested that.