Replies: 1 comment 2 replies
-
https://carbondesignsystem.com/components/UI-shell-left-panel/usage/ |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bootstrap's offcanvas
defined as a sidebar that can appear left/right but also top/bottom
can be modal (w/ or w/out light dismiss) or not, but does not push content
has
role=dialog
but does not use a<dialog>
.Material 3 nav drawer
has similar features as our SD: can be permanent, switched off, modal or not.
no web implementation / mobile-focused
Nothing in Carbon
Carbon proposes a UI shell concept for devs to embed sub-apps into a single one > split into header/left panel/right panel
the panels are similar to our Nav component and does not seem to offer show/hide or modal functionality
Nothing gov.uk
Many design systems propose a Nav like component but drawers are more rare
Aside from the behavior details listed above, there are two implementation issues with using the
<dialog>
component:show
andshowModal
methods. Thereis a declarative way to change the state using theopen
attribute but: a) this is discouraged by MDN and b) there is nomodal
(oropen-modal
) attribute.Ultimately, the current dialog API drives its dynamic nature: a component that's hidden by default and displayed punctually based on user interaction. This is a small departure from our side drawer, which has a more permanent nature and can optionally be discarded.
Beta Was this translation helpful? Give feedback.
All reactions