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

refactor(menu-item,menu): keyboard interaction #6819

Conversation

anveshmekala
Copy link
Contributor

Related Issue: #6531

Summary

Refactors keyboard navigation and cleanup

@anveshmekala anveshmekala requested a review from a team as a code owner April 20, 2023 21:32
@@ -172,8 +177,6 @@ export class CalciteMenuItem implements LoadableComponent {
this.active = this.active || this.editable;
this.isFocused = this.active;
// todo just get any nav items in the default slot?
// this.hasSubMenu = this.hasSlottedItems();

// for now to detect nesting only working two level for demo.need to just check if it has any parent originating at top lvel
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove any todo / wip items (I think these are probably mine, ha)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i left them to keep a track of whats leftover. Are these irrelevant?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed them.

@@ -504,9 +398,8 @@ export class CalciteMenuItem implements LoadableComponent {
: "chevron-down"
: dirChevron
}
onClick={() => (this.open = !this.open)}
onClick={this.clickHandler}
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@macandcheese macandcheese left a comment

Choose a reason for hiding this comment

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

Excellent!

@anveshmekala anveshmekala merged commit 0c81cc9 into macandcheese/wip-navigation Apr 20, 2023
@anveshmekala anveshmekala deleted the anveshmekala/refactor-keyboard-support-menu-item branch April 20, 2023 22:21
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.

2 participants