Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Table] Puts the component classname on the root element #193

Merged
merged 1 commit into from Mar 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/system/Table/Table.js
Expand Up @@ -17,10 +17,13 @@ const Table = React.forwardRef(
}

return (
<Box sx={ { width: '100%', overflowX: 'auto' } }>
<Box
className={ classNames( 'vip-table-component', className ) }
sx={ { width: '100%', overflowX: 'auto' } }
>
<table
sx={ { width: '100%', minWidth: '1024px', borderSpacing: 0, ...sx } }
className={ classNames( 'vip-table-component', className ) }
djalmaaraujo marked this conversation as resolved.
Show resolved Hide resolved
className={ classNames( 'vip-table-component-element', className ) }
ref={ forwardRef }
{ ...props }
>
Expand Down