Skip to content

fix(types): extract ContextMenuItemConfig to remove role support from context menus#184

Open
omarghandour wants to merge 1 commit intoblackboardsh:mainfrom
omarghandour:fix-context-menu-roles
Open

fix(types): extract ContextMenuItemConfig to remove role support from context menus#184
omarghandour wants to merge 1 commit intoblackboardsh:mainfrom
omarghandour:fix-context-menu-roles

Conversation

@omarghandour
Copy link

Resolves a TODO inside ContextMenu.ts.

Context Menus should not share the exact same configuration type as Native Application Menus because application menus support the role property whereas context menus do not. This PR extracts a shared BaseMenuItemConfig and separates the ApplicationMenuItemConfig and ContextMenuItemConfig to restrict role usage to application menus only.

Tested locally via the kitchen sink application to ensure context menus still compile and render successfully.

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.

1 participant