Skip to content

Conversation

@snowystinger
Copy link
Member

@snowystinger snowystinger commented Oct 20, 2022

Closes #3368
and supersedes #3529

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 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:

@adobe adobe deleted a comment from adobe-bot Oct 20, 2022
@adobe adobe deleted a comment from adobe-bot Oct 20, 2022
@adobe adobe deleted a comment from adobe-bot Nov 22, 2022
@snowystinger snowystinger marked this pull request as ready for review November 30, 2022 20:14
@snowystinger snowystinger deleted the refactor-column-resizing branch December 1, 2022 00:08
@snowystinger snowystinger restored the refactor-column-resizing branch December 1, 2022 00:48
@snowystinger snowystinger reopened this Dec 1, 2022
Copy link
Member

@LFDanLu LFDanLu left a 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.

Comment on lines +18 to +22
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;
Copy link
Member

Choose a reason for hiding this comment

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

Just a heads up, I noticed that these types were malformed in the docs.
image
Looks like it is having a hard time understanding ${number}` | `${number}% and ${number}fr unfortunately

Copy link
Member Author

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

Copy link
Member

@LFDanLu LFDanLu left a 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

@snowystinger snowystinger merged commit 3e5f99b into main Dec 13, 2022
@snowystinger snowystinger deleted the refactor-column-resizing branch December 13, 2022 22:01
majornista pushed a commit that referenced this pull request Jan 25, 2023
majornista pushed a commit that referenced this pull request Jan 25, 2023
majornista pushed a commit that referenced this pull request Jan 25, 2023
majornista pushed a commit that referenced this pull request Jan 25, 2023
majornista pushed a commit that referenced this pull request Jan 25, 2023
majornista pushed a commit that referenced this pull request Jan 25, 2023
reidbarber added a commit that referenced this pull request Jan 31, 2023
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

8 participants