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

AdvancedTable: follow ups #2659

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

shleewhite
Copy link
Contributor

@shleewhite shleewhite commented Jan 21, 2025

📌 Summary

  • Remove utility classes from the Td component
  • Prevent default when user presses arrow keys while focused on a cell
  • Move repeated code from td, th, and th-sort to a new hds-advanced-table-cell modifier

📸 Screenshots

🔗 External links

Jira ticket: HDS-4381


👀 Component checklist

💬 Please consider using conventional comments when reviewing this PR.

Copy link

vercel bot commented Jan 21, 2025

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

Name Status Preview Updated (UTC)
hds-showcase ✅ Ready (Inspect) Visit Preview Feb 7, 2025 3:10pm
hds-website ✅ Ready (Inspect) Visit Preview Feb 7, 2025 3:10pm

{{! @glint-expect-error - https://github.com/josemarluedke/ember-focus-trap/issues/86 }}
{{focus-trap
isActive=this._shouldTrapFocus
shouldSelfFocus=true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed shouldSelfFocus because it doesn't do anything when initialFocus is set (see within focusTrapOptions)

@shleewhite
Copy link
Contributor Author

I went back and forth on testing that the is-pinned class gets added correctly on scroll and ultimately got a solution that works most of the time locally, but it still fails in the headless browser in CI. Removing that part of the test so at least theres a test that the one class gets added.

@shleewhite shleewhite marked this pull request as ready for review February 5, 2025 20:23
@shleewhite shleewhite requested a review from a team as a code owner February 5, 2025 20:23
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.

Great refactor to a custom modifier, left one small changeset comment.

.changeset/thin-masks-attack.md Outdated Show resolved Hide resolved
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.

3 participants