-
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
[Feature Request]: DataTable ability to add (non-AI) slugs to column headers #17303
Comments
Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team. |
@wkeese To make a change to styling, I suggest you bring to up with Adam Cutler and/or Ramiro Galan. We are following a very specific AI implementation from their work across all product team. There aren't supposed to changes without review and approval by them. They do host a weekly call every Wednesday at 9am ET for designs to be presented. Perhaps your team's designer could attend that by reaching out to Adam. cc @oliviaflory @matthewgallo @elycheea |
@ljcarot - But I'm not asking to change the styling. That's the opposite of what I want. |
I like this idea, but it feels like a back-door solution. We should think about this more systematically. Can you stop Dev Office Hours so we can chat about it more? Thanks for submitting this! |
@sstrubberg - I could try, but there's no time listed on that page, only a day. No one is there right now (probably it's around midnight in America). What time do people come? |
@wkeese it's at 10am ET. If you subscribe to the YourLearning, it'll send you all the time and date details. We run office hours once a sprint. |
We need to figure out how to avoid nested interactive elements in the header cells before we can look at expanding support beyond the AILabel #16031 |
Yes, presumably the buttons should be next to each other, but with CSS so they visually overlap (position:relative, negative margin, etc.) |
Thanks for coming to office hours today @wkeese! A recap of what we discussed:
@laurenmrice @aagonzales do you have any objections to this? This is one of those instances where it would be nice if this prop was named something more open ended rather than @ariellalgilmore was looking at refactoring the Some ideas:
|
The problem
Our app needs to add info tooltips to column headers:
So I want a DataTable option to do that.
Workaround
DataTable (and @carbon/ibm-products' Datagrid) support adding "AI labels" to column headers and rows.
But then Carbon inserts a blue gradient in the data cells, and the blue bar at the top:
In order to add a slug without the table style changing, I need to disable Carbon's AI styling. This is not trivial, because DataTable has styling for selected rows, hovered rows, hovered + selected rows, child rows, etc. This is what worked for me but it's not complete:
The solution
Technically speaking, you could implement this by only enabling the blue styling for AI slugs, for example:
But I want to be clear that I am not asking to change the styling. I am asking for the opposite: To add a slug to column headers without changing the table styling.
Examples
No response
Application/PAL
IKC
Business priority
None
Available extra resources
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: