Skip to content

Adding feature flag check for expandable table rows in aria hooks #4865

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

Merged
merged 4 commits into from
Aug 4, 2023

Conversation

LFDanLu
Copy link
Member

@LFDanLu LFDanLu commented Aug 4, 2023

Closes

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

🧢 Your Project:

RSP

rowProps['aria-rowindex'] = node.index + 1 + state.collection.headerRows.length; // aria-rowindex is 1 based
} else {
delete rowProps['aria-rowindex'];
}

let treeGridRowProps: HTMLAttributes<HTMLElement> = {};
if ('expandedKeys' in state) {
if (tableNestedRows() && 'expandedKeys' in state) {
Copy link
Member Author

Choose a reason for hiding this comment

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

wanted to just make a var for let isTreeGrid = tableNestedRows() && 'expandedKeys' in state; and use it here, but typescript wasn't smart enough to figure out that state would then be a TreeGridState only and complained about lines below

@rspbot
Copy link

rspbot commented Aug 4, 2023

@rspbot
Copy link

rspbot commented Aug 4, 2023

@rspbot
Copy link

rspbot commented Aug 4, 2023

@rspbot
Copy link

rspbot commented Aug 4, 2023

## API Changes

unknown top level export { type: 'identifier', name: 'Column' }
unknown top level export { type: 'identifier', name: 'Column' }
unknown type { type: 'link' }
unknown type { type: 'link' }
unknown type { type: 'link' }
unknown type { type: 'link' }
unknown type { type: 'link' }
unknown type { type: 'link' }

@LFDanLu LFDanLu merged commit d745bd4 into main Aug 4, 2023
@LFDanLu LFDanLu deleted the feature_flag_check_in_hooks branch August 4, 2023 21:19
@dannify dannify removed the release label Aug 13, 2024
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.

5 participants