- Notifications
You must be signed in to change notification settings - Fork 1.4k
Refactor column resizing for controlled state resizing #3672
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
Conversation
| Build successful! 🎉 |
| Build successful! 🎉 |
| Build successful! 🎉 |
# Conflicts: # packages/@react-spectrum/table/src/TableView.tsx # packages/@react-stately/layout/src/TableLayout.ts
| Build successful! 🎉 |
…ctrum into refactor-column-resizing
| Build successful! 🎉 |
LFDanLu left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just two things I noticed when writing the docs, can be followup.
| export type ColumnStaticSize = number | `${number}` | `${number}%`; // match regex: /^(\d+)(?=%$)/ | ||
| /** Widths that change size in relation to the remaining space and in ratio to other dynamic columns. */ | ||
| export type ColumnDynamicSize = `${number}fr`; // match regex: /^(\d+)(?=fr$)/ | ||
| /** All possible sizes a column can be assigned. */ | ||
| export type ColumnSize = ColumnStaticSize | ColumnDynamicSize; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
urgh, lol, i'll address it in followup
TODO: add to follow up
LFDanLu left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, would be good to check if #3523 is resolved by this work. I'll have to look up the team and see if they can try and upgrade when this goes out
* fix(#2949): TableView Windows High Contrast issues * fix(#2949): ListView Windows High Contrast issues * fix(#2949): Drag and Drop Windows High Contrast issues * fix(#3672): refine Checkbox WHCM/forced-colors styles * fix(#3827): fix checkbox chromatic tests * fix(#3672): Move forced-colors color overrides to start of media-query * fix(#3672): remove some css specificity for forced-color overrides * fix(#3672): add vars for --spectrum-global-color-blue-500 * fix(#3672): fix checkbox forced-colors overrides * fix(#3672): fix circle loader forced-colors overrides * fix(#3672): fix dropzone forced-colors overrides * fix(#3672): fix switch forced-colors overrides * fix(#3672): fix table forced-colors overrides * fix(#3672): fix ListView forced-colors overrides * fix(#3672): ListView/Table add more code comments for forced-colors * fix(#3672): move forced-color-adjust statements to simplify media query overrides * fix(#3672): remove global variables from forced-colors overrides * fix border focus colors --------- Co-authored-by: Daniel Lu <dl1644@gmail.com> Co-authored-by: Robert Snow <rsnow@adobe.com> Co-authored-by: Reid Barber <reid@reidbarber.com>

Closes #3368
and supersedes #3529
✅ Pull Request Checklist:
📝 Test Instructions:
Table resizing should behave the same as it has from a user point of view. I've also added controlled stories, as well as aria examples (mouse only on the aria ones).
Internally, I've also added a number of tests. They are run against both the aria implementation and the rsp implementation.
🧢 Your Project: