Closed crispipear closed 2 months ago
Hey @crispipear, this is awesome! 🤩😍😯
Thanks a ton for jumping in and contributing to SDS! Really appreciate you taking the time to help out. Looking forward to seeing more from you! 🥳🎉
I’ll go ahead and merge this into the main branch now. It should be included in the next release cycle, likely this Wednesday. 🥳🎉
09/18 Release
:computer: Coded Library (@czi-sds/components@21.2.0)
:gift: New Features:
headerComponentSlot
prop to DropdownMenu
component (Demo):bug: Bug Fixes
sdsStyle
to doNotForwardProps
on ButtonIcon
Summary
Structural Element (Base, Gene, DNA, Chromosome or Cell) Genes? Github issue: N/A
Background
When using an icon styled ButtonDropdown, there will be a console error message about prop
sdsStyle
being passed in the DOM.<ButtonDropdown />
renders<ButtonIcon />
whensdsStyle="icon"
. While<ButtonIcon />
doesn't do more with thesdsStyle
prop beyond that point, all the props (along withsdsStyle
) are still being passed into the underlying components. There will still be a console error since"sdsStyle"
wasn't included in the list ofdoNotForwardProps
.Checklist
defaultTheme.ts
used wherever possible