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

feat(react-keytips): initial implementation #221

Merged
merged 43 commits into from
Oct 16, 2024

Conversation

mainframev
Copy link
Contributor

@mainframev mainframev commented Aug 19, 2024

Support for persistent keytips will be added later. This PR covers draft and initial implementation.

@mainframev mainframev force-pushed the keytips-draft branch 8 times, most recently from 9a62bef to 1070231 Compare August 21, 2024 14:31
@mainframev mainframev self-assigned this Aug 21, 2024
@mainframev mainframev force-pushed the keytips-draft branch 5 times, most recently from efebf06 to 9e76165 Compare August 28, 2024 20:59
@mainframev mainframev mentioned this pull request Aug 29, 2024
29 tasks
@mainframev mainframev force-pushed the keytips-draft branch 6 times, most recently from 943879f to 7eeef21 Compare September 3, 2024 17:03
<Keytip key={keytipId} {...keytipProps} />
));

const hiddenKeytips = Object.values(keytips).map(({ keySequences }) => (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is similar to v8 keytips implementation and needed for maintaining ids for aria-describedby

Copy link
Contributor

@dmytrokirpa dmytrokirpa left a comment

Choose a reason for hiding this comment

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

I've added some comments and it would be beneficial to include additional tests to ensure everything functions correctly. Additionally, documenting the hooks and utilities would be helpful.

packages/react-keytips/src/hooks/useEventService.ts Outdated Show resolved Hide resolved
packages/react-keytips/src/hooks/useKeytipRef.ts Outdated Show resolved Hide resolved
packages/react-keytips/src/hooks/useTree.ts Show resolved Hide resolved
packages/react-keytips/package.json Outdated Show resolved Hide resolved
packages/react-keytips/src/hooks/useTree.ts Outdated Show resolved Hide resolved
packages/react-keytips/stories/index.stories.ts Outdated Show resolved Hide resolved
@mainframev mainframev merged commit 813ebd1 into microsoft:main Oct 16, 2024
3 checks passed
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