Closed jpic closed 3 years ago
Heya, I'll take a better look at this next week and write up some in-depth documentation, but a quick answer:
when the drawer is open, you need to set the width of the top-app-bar to be 100% - width of drawer.
e.g.
mwc-drawer[open] {
--mdc-top-app-bar-width: calc(100% - var(--mdc-drawer-width, 256px));
}
These default values can be found in their respective documentation pages.
Woaw, thank you very much!!
:tophat:
On desktop, there is plenty of width to enjoy the page content with an open drawer.
On desktop with closed
<mwc-drawer>
, the green button on the right is visible:With
<mwc-drawer open dismissible>
, the green button is not visible anymore:This is great for mobile or tablet, but on desktop I fear some users will miss the buttons right here because they forget about the dismissive open drawer.
Source code of the above:
Any idea how to let
<mwc-top-app-bar-fixed>
show its[slot=navigationIcon]
even inside<mwc-drawer dismissible open>
?Thank you for the components :tophat:
Sorry for the issue tag but this is more of a question than a bug.