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: Support "Grouped" Menu Items #6729

Closed
wants to merge 7 commits into from
Closed

Conversation

eljefe223
Copy link
Contributor

@eljefe223 eljefe223 commented May 9, 2023

Pull Request

πŸ“– Description

This PR adds support for grouping menu-items.

🎫 Issues

πŸ‘©β€πŸ’» Reviewer Notes

πŸ“‘ Test Plan

βœ… Checklist

General

  • I have included a change request file using $ yarn change
  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

Component-specific

⏭ Next Steps

@eljefe223 eljefe223 changed the title working focus Feat: Support "Grouped" Menu Items May 10, 2023
@eljefe223 eljefe223 marked this pull request as ready for review May 10, 2023 19:47
"comment": "Feat: support grouped menu-items",
"packageName": "@microsoft/fast-foundation",
"email": "[email protected]",
"dependentChangeType": "patch"
Copy link
Collaborator

Choose a reason for hiding this comment

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

prerelease?

* check if the item is a grouped menu item
*/
protected isGroupedMenuItemElement = (el: Element): el is HTMLElement => {
return (el.getAttribute("role") as string) === "group";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you need to cast to string?

Copy link
Collaborator

@scomea scomea left a comment

Choose a reason for hiding this comment

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

Ran it, seems good.

@janechu
Copy link
Collaborator

janechu commented Jun 10, 2024

Closing this, due to #6951 we are only putting in fixes or critical features.

@janechu janechu closed this Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants