The DropdownMenu header should not be rendered if neither title nor headerComponentSlot are defined. Previously, the header was being rendered unnecessarily, causing an extra 8px margin at the top of the DropdownMenu. This fix ensures the header is only rendered when needed, resolving the excess margin issue.
Summary
DropdownMenu Github issue: #854
The
DropdownMenu
header should not be rendered if neithertitle
norheaderComponentSlot
are defined. Previously, the header was being rendered unnecessarily, causing an extra8px
margin at the top of theDropdownMenu
. This fix ensures the header is only rendered when needed, resolving the excess margin issue.