Closed ozanmuyes closed 2 months ago
This is to fulfill my use-case but I think it's a common use-case to have so-called collapsed drawers / sidebars when closed it won't hide away but collapses to a minified version of the drawer / sidebar.
@ozanmuyes This should be possible today, the underlying dialog
is exposed as a part, so something like the following should work:
side-drawer::part(dialog) {
left: 80px;
}
Will that work for your use case? I'd rather consumers leverage the dialog
part over adding more CSS properties (and expanding the component's API surface).
I wasn't aware of ::part()
, thanks!
Is it possible to give it some offset from left (if it's not
right
ed) or offset from right (if<side-drawer right>
)? I saw the applicable CSS properties, but they are not useful for what I want to achieve.