Problem
TableCellLayout has a wrapper slot that wraps content:
|
{slots.wrapper && ( |
|
<slots.wrapper {...slotProps.wrapper}> |
|
{slots.main && <slots.main {...slotProps.main}>{slotProps.root.children}</slots.main>} |
|
{slots.description && <slots.description {...slotProps.description} />} |
|
</slots.wrapper> |
|
)} |
From its name it creates following expectation:
return (
<slots.wrapper {...slotProps.wrapper}>
<slots.root {...slotProps.root}/>
</slots.wrapper>
)
Suggestion: rename slot to content/contentWrapper
Problem
TableCellLayouthas awrapperslot that wraps content:fluentui/packages/react-components/react-table/src/components/TableCellLayout/renderTableCellLayout.tsx
Lines 22 to 27 in 3f806f9
From its name it creates following expectation:
Suggestion: rename slot to
content/contentWrapper