Replies: 2 comments 1 reply
-
I'll defer this to @lindsaym-fa for consideration, but typically for this type of application I suggest removing the default header and adding your own within the drawer's main content slot. Quick example: |
Beta Was this translation helpful? Give feedback.
-
Interesting suggestion! It seems similar to the I'm curious: Even with |
Beta Was this translation helpful? Give feedback.
-
I would like the option to add an image to the top of our drawers and modals.
Here's a basic mockup of an example drawer:
We've managed to achieve this by using the
no-header
option and adding our own header in the body slot. However, it makes enforcing accessibility more complicated, because we can no longer take advantage ofaria-labelledby
that links the dialog to the header (the dialog is in the shadow DOM and our custom header is in the light DOM).I'd like a
prefix
slot that allows us to insert content above theheader
slot. I'm happy to take a stab at a PR, but wanted to get a gut check from others first!Beta Was this translation helpful? Give feedback.
All reactions