-
Notifications
You must be signed in to change notification settings - Fork 610
fix(Table): update TableContainer to place className
on outermost element
#6032
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 6750088 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes Table.Container so that any passed className
and other HTML attributes are applied to its outermost wrapper component.
- Destructure and forward
className
and other...rest
props toBoxWithFallback
- Merge the provided
className
with the component’s default container class
Comments suppressed due to low confidence (1)
packages/react/src/DataTable/Table.tsx:238
- Add a unit test for Table.Container to verify that provided
className
and other HTML attributes (e.g.,id
,data-*
) are applied to the outermostBoxWithFallback
element.
<BoxWithFallback {...rest} className={clsx(className, classes.TableContainer)} sx={sxProp}>
👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks! |
size-limit report 📦
|
Closes https://github.com/github/primer/issues/5185
Update the
Table.Container
component to correctly place the providedclassName
on the outermost element.Changelog
New
Changed
Table.Container
to place providedclassName
on outermost elementRemoved
Rollout strategy