-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[DataTableSkeleton] Add prop to hide header in table skeleton #5993
Comments
Sounds close to #5967 - CC @carbon-design-system/design |
Just to clarify, it's not the header row, it's the new header for the table (container with title & description) |
This is a breaking change that was not communicated in the release changelog... I'm now forced to override with CSS behaviour that has been forced rather than added as an optional. |
And it's definitely not a backwards compatible change, so by semver should have been a major version bump. |
I'm happy to look at raising a PR if it's acceptable for it to be customisable |
@nictownsend My apologies for the change in table skeleton yielded a minor breaking change; The change was meant to be part of Wrt providing an option to hide title/description portion, technically it makes sense, but let's see what @carbon-design-system/design thinks from the point of whether our design guide since |
Thank you - for now, the DataTable + DataTable skeleton are not consistent; I use a DataTable without a header or toolbar, and I will have to use CSS to hide the Skeleton header and toolbar for consistency. If design do not believe the guide for |
There are also use cases where you want the DataTable to be a skeleton but you have actions available in the toolbar that do not need a skeleton. For example, the primary button of a table being create new object, which can still occur whilst the underlying data is being refresh (causing a skeleton) e.g. |
Hey team, is this question be resolved? I also wanna keep the search bar shown in skeleton status, any guidance? Thanks! |
@GraceeFlower, there hasn't been any more work on this item since the last comment. I think keeping the search bar visible may be a separate enhancement, so I'd create a new issue as a |
Summary
After #5752 was merged, the DataTableSkeleton component always has a header now, which is a change from how it used to look previously (which is understandable, given the v10 bump).
For the React component, it would be nice to have a prop such as
showHeader
that can show or hide the extra divs, instead of having to apply some sort of CSS to hide them.The text was updated successfully, but these errors were encountered: