[Project Solar / Phase 1 / Migration] Table & AdvancedTable carbonization - #3988
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
4396ca7 to
0dce377
Compare
…n themes sticky header
| "color": { | ||
| "focus": { | ||
| "$type": "color", | ||
| "$value": "{core.color.blue-300}" |
There was a problem hiding this comment.
@jorytindall @heatherlarsen do you remember why these colors were used?
| }, | ||
| "hover": { | ||
| "$type": "color", | ||
| "$value": "#b1b1b5" |
There was a problem hiding this comment.
@jorytindall @heatherlarsen do you remember why these colors were used?
| "surface": { | ||
| "color": { | ||
| "$type": "color", | ||
| "$value": "rgba(204, 227, 254, 30%)" |
There was a problem hiding this comment.
@jorytindall @heatherlarsen do you remember why these colors were used?
jorytindall
left a comment
There was a problem hiding this comment.
Sorry for this barrage of comments that I wasn't really sure what to pin to. I'll try to organize them categorically.
Scroll indicator
We're losing the scroll indicator gradient in the AdvancedTable on the dark Carbon themes. There isn't really a Figma token for this, so LMK how it's best to define that.
Reordering/resizing
There may have been a few bugs introduced in the AdvancedTable:
- the reordering button displays on the hover action for the column resizing feature.
- When I select "Move column" from the context menu, the drag handle displays, but is not focused (in the production branch it does do this)
Empty state
There's an issue with the empty state (either in the showcase examples, or otherwise), where hover the tooltip there's a z-index issue causing the empty state to overlap the tooltip. Additionally, the header is scrollable. However, the scroll only appears after the tooltip has been interacted with. I wasn't able to reproduce it in the main branch, but there also aren't tooltips in any of the examples.

|
|
||
| .hds-table__th { | ||
| padding: $hds-table-cell-padding-medium; | ||
| padding: var(--hds-table-header-cell-padding-vertical) var(--hds-table-cell-padding-horizontal) |
There was a problem hiding this comment.
[question] I'm not quite sure where to add this, but the rendered height short HDS table is a bit taller (~2px) than the Carbon table and I think it's because of a 2px difference in the line height of the text. Is this something worth indexing on, or would we consider this a bit nit-picky?
|
|
||
| // striped rows | ||
|
|
||
| .hds-table--striped & { |
There was a problem hiding this comment.
Disregard this, it's because the selected row has a different surface color that I didn't realize 🤦
| --hds-table-cell-surface-color-striped-hover: rgba(141, 141, 141, 0.12); | ||
| --hds-table-header-button-border-color-active: rgba(0, 0, 0, 0); | ||
| --hds-table-header-button-border-color-hover: rgba(0, 0, 0, 0); | ||
| --hds-table-header-button-foreground-color-sorted-active: #161616; |
There was a problem hiding this comment.
[issue] I'm seeing a slight inconsistency in the tooltip button and the sort button foreground colors. In the g0 theme:
- The resting/default foreground color for the tooltip button and the indeterminate sort is #525252
- The resting/default foreground color for the descending/ascending sort button is #161616
I think all of these should have the same resting/default foreground color, and this is what is reflected in Figma. Even though these interactive elements are different from how Carbon implements these features.
There was a problem hiding this comment.
Actually looks like this might be an issue with the secondary-muted variant (sorry if this comment is in a weird spot, kind of hard to know where it's best to comment).
|
It looks like the reordering / resizing and empty state bug you caught are both ones present on CC: @shleewhite |
Created a JIRA ticket for this https://hashicorp.atlassian.net/browse/HDS-6573 |

📌 Summary
If merged, this PR would carbonize the
Tablecomponent and adds the relevant component tokens. It also adds a new state for the row that toggles the isSelected class.Note: for reorderable columns, the HTML element to show the preview column as you're dragging is appended to the DOM so it doesn't show as themed on the carbonization page. To validate that it works correctly, check the normal AdvancedTable showcase page and change the theme.
Read through similar carbonization pages under showcase/app/components/page-carbonization and compare those to the changes made here to ensure this PR aligns with previous carbonization efforts
🔗 External links
Jira ticket: HDS-6104
👀 Component checklist
💬 Please consider using conventional comments when reviewing this PR.
📋 PCI review checklist
Examples of changes to controls include access controls, encryption, logging, etc.
Examples include changes to operating systems, ports, protocols, services, cryptography-related components, PII processing code, etc.