Merged in feat/SW-2847-table (pull request #2665)

fix(SW-2847): move ScrollWrapper to design system and Table component

* fix(SW-2847): move ScrollWrapper to design system and Table component


Approved-by: Erik Tiekstra
This commit is contained in:
Matilda Landström
2025-08-20 09:41:54 +00:00
parent 7891ae3ae6
commit fe376c63f7
9 changed files with 58 additions and 66 deletions

View File

@@ -6,6 +6,7 @@ import TR from './TR'
import { tableVariants } from './variants'
import type { TableProps } from './table'
import ScrollWrapper from './ScrollWrapper'
function Table({
className,
@@ -26,9 +27,11 @@ function Table({
})
return (
<table className={classNames} style={{ width }} {...props}>
{children}
</table>
<ScrollWrapper>
<table className={classNames} style={{ width }} {...props}>
{children}
</table>
</ScrollWrapper>
)
}