Skip to content

Conversation

@shleewhite
Copy link
Contributor

@shleewhite shleewhite commented Aug 6, 2025

📌 Summary

If merged, this PR would fix the styles when the user sets @align to "right" or "center".

PREVIEW

📸 Screenshots

CURRENT PRODUCTION SHOWCASE
Screenshot 2025-08-06 at 6 00 58 PM
Screenshot 2025-08-06 at 6 01 04 PM
Screenshot 2025-08-06 at 6 01 59 PM

AFTER PROPOSED FIX
Screenshot 2025-08-06 at 6 02 29 PM
Screenshot 2025-08-07 at 8 00 10 AM
Screenshot 2025-08-06 at 6 02 51 PM

🔗 External links

Jira ticket: HDS-5254


👀 Component checklist

💬 Please consider using conventional comments when reviewing this PR.

📋 PCI review checklist
  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.
  • If applicable, I've worked with GRC to document the impact of any changes to security controls.
    Examples of changes to controls include access controls, encryption, logging, etc.
  • If applicable, I've worked with GRC to ensure compliance due to a significant change to the in-scope PCI environment.
    Examples include changes to operating systems, ports, protocols, services, cryptography-related components, PII processing code, etc.

@vercel
Copy link

vercel bot commented Aug 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Project Deployment Preview Updated (UTC)
hds-showcase Ready Preview Aug 13, 2025 5:48pm
hds-website Ready Preview Aug 13, 2025 5:48pm

dchyun
dchyun previously approved these changes Aug 7, 2025
Copy link
Contributor

@dchyun dchyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch lgtm! Note: Since this does have a slight dom change will need to check in the next release testing that no consumer tests break, but should be unlikely.

zamoore
zamoore previously approved these changes Aug 8, 2025
Copy link
Contributor

@zamoore zamoore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@shleewhite shleewhite force-pushed the hds-5254/advanced-table-align branch from 8b4b414 to f7cbd74 Compare August 11, 2025 20:35
<Hds::AdvancedTable::Th
@isExpandable={{true}}
@tooltip="Here is more information"
@column={{get this.sampleTableModel.columns 1}}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: for both ThSort and Th, there is a scrollbar for this example. This is because of the visually hidden resize handler. I think it is ok for now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering... Does it make sense to have a resize handle on the last cell in a row?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I look at the "Resizable columns with sorting" example, the last column is not resizable (does not have a resize handle on the right-most side of the table) which is what I would expect. Could you possibly update your example to get rid of the resize handle on the last row?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh ok I see. I need to include the resize handle for the context menu to show up, so I will just add another column that doesnt have one.

Copy link
Contributor

@dchyun dchyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New showcase examples are really helpful. I'm seeing one issue present previously with the tooltip alignment, but that's it.

dchyun
dchyun previously approved these changes Aug 13, 2025
Copy link
Contributor

@dchyun dchyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! All percy diff looks expected.

</SF.Item>
</Shw::Flex>

<Shw::Flex @label="Alignment with all interactive elements" as |SF|>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Separating the examples out like this makes it much clearer.

Copy link
Contributor

@KristinLBradley KristinLBradley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is looking good and the Percy diffs look as expected. I left comments related to the overflow scrolling & resize handle. I think you could just remove the resize on the last column to fix the issue.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[todo][non-blocker] I can make this update after this merges, but one small unrealted fix is in the Td examples for the inline dropdown the route needs to be updated to page-components.advanced-table. Didn't realize I'd been routed to the table page after clicking it and was quite confused for a min 😅.

<D.Interactive @route="page-components.table">Dropdown</D.Interactive>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hahhaha way ahead of you, I already fixed it in the spike branch.

Copy link
Contributor

@KristinLBradley KristinLBradley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@shleewhite shleewhite merged commit a4f7d1a into main Aug 13, 2025
16 checks passed
@shleewhite shleewhite deleted the hds-5254/advanced-table-align branch August 13, 2025 21:39
@hashibot-hds hashibot-hds mentioned this pull request Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants