Open keehun opened 1 year ago
Hi @keehun this appears to be a limitation with the Carbon v10 styles being applied. I've observed that overflow-x
styles are accounted for in Carbon v11: https://react.carbondesignsystem.com/?path=/story/components-datatable-basic--default
For now, a workaround may be to wrap your table with custom styles as I've suggested here: https://github.com/carbon-design-system/carbon-components-svelte/discussions/1512#discussioncomment-3971540
Thanks @theetrain! I look forward to v11 components/v1.0.0 release milestone! This is the only glaring issue I see/have with Carbon Svelte components. Otherwise, I'm loving it!
I am using a
DataTable
which has contents which I expect to wrap when the cell contents are wider than the layout allows.Instead, it looks like the table is becoming wider than the parent container.
Is this a known limitation? Is there a way to force the table to stay the
100%
it should be and wrap inner contents?