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

Datagrid useSortableColumns -> when disableSortBy is true minWidth is ignored and set to 0px #5561

Closed
2 tasks done
SkaisteMot opened this issue Jun 21, 2024 · 1 comment
Closed
2 tasks done
Labels
component: Datagrid Sev 3 Visible or noticeable to users but does not impede functionality. Has a workaround.

Comments

@SkaisteMot
Copy link

Package

Carbon for IBM Products

Description

When setting up headers for the Datagrid componenet, if you set a minWidth and disableSortBy the set minimum width is ignored and set to 0px

Component(s) impacted

Datagrid table
https://github.com/carbon-design-system/ibm-products/assets/118757021/0e688a48-7178-4f8b-86a8-ea8e3fbc2fda

Browser

Chrome

@carbon/ibm-products (previously @carbon/ibm-cloud-cognitive) version

2.21.0

Severity

Severity 3 = The problem is visible or noticeable to users but does not impede the usability or functionality. Affects minor functionality, has a workaround.

Product/offering

SOAR

CodeSandbox or Stackblitz example

https://stackblitz.com/edit/github-5arppl?file=src%2FExample%2FExample.jsx

Steps to reproduce the issue (if applicable)

No response

Release date (if applicable)

No response

Code of Conduct

@github-project-automation github-project-automation bot moved this to Needs triage 🧐 in Carbon for IBM Products Jun 21, 2024
@matthewgallo matthewgallo added component: Datagrid Sev 3 Visible or noticeable to users but does not impede functionality. Has a workaround. and removed status: needs triage 🕵️‍♀️ labels Jun 25, 2024
@matthewgallo matthewgallo moved this from Needs triage 🧐 to Backlog 🌋 in Carbon for IBM Products Jun 25, 2024
@ljcarot ljcarot moved this from Backlog 🌋 to Icebox 🧊 in Carbon for IBM Products Oct 30, 2024
@ljcarot
Copy link
Member

ljcarot commented Nov 25, 2024

We've been investigating TanStack Table, a third-party, open-source offering, which provides extensive data table capabilities surpassing what our Carbon Datagrid offers. It provides much more flexibility and customization. TanStack Table is headless which means it can easily be added alongside Datagrid component in your product or application. The benefits of more flexibility for product teams and less maintenance for Carbon makes it a win win. Lastly, it is available in multiple frameworks including React and Web Component so it provides an option to non-React product teams.

For these reasons, we have decided to transition from building our own custom table component to using an example-based approach with TanStack Table. Datagrid will still exist in our library for existing teams but we are announcing the deprecation* of the Datagrid component in v2.54.0 release so teams can begin to work through the transition. Details about how to use both Datagrid and TanStack together can be found here.

*Deprecation means that no new features will be added however sev 1 and sev 2 bugs will be supported.

@ljcarot ljcarot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 25, 2024
@github-project-automation github-project-automation bot moved this from Icebox 🧊 to Done 🚀 in Carbon for IBM Products Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Datagrid Sev 3 Visible or noticeable to users but does not impede functionality. Has a workaround.
Projects
Archived in project
Development

No branches or pull requests

3 participants