Skip to content

Features/notooltipifchildren#76

Merged
AAAnthonyAAA merged 2 commits intomainfrom
features/notooltipifchildren
Jan 30, 2026
Merged

Features/notooltipifchildren#76
AAAnthonyAAA merged 2 commits intomainfrom
features/notooltipifchildren

Conversation

@AAAnthonyAAA
Copy link
Collaborator

Features/notooltipifchildren

Copilot AI review requested due to automatic review settings January 30, 2026 08:10
@AAAnthonyAAA AAAnthonyAAA merged commit 416879e into main Jan 30, 2026
3 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances the NavItemButton component to prevent tooltips from displaying when a navigation item has children. When the navigation is collapsed and a user hovers over an item with children, the sidebar opens to show those children, making a tooltip redundant.

Changes:

  • Modified tooltip display logic to exclude items with children when navigation is collapsed
  • Updated package version from 1.23.9 to 1.24.0
  • Added release note documenting this enhancement

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/components/NavigationBar/NavItemButton.tsx Added condition to prevent tooltip display for navigation items with children
src/stories/ReleaseNotes.stories.tsx Added release note entry for version 1.24.0 documenting the tooltip enhancement
package.json Bumped package version to 1.24.0

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

setIsHovered(true);
// Only show tooltip if navigation is collapsed (text is not visible)
if (!isExpanded) {
if (!isExpanded && !hasChildren ) {
Copy link

Copilot AI Jan 30, 2026

Choose a reason for hiding this comment

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

There's a spacing issue before the closing parenthesis. Remove the extra space before the closing parenthesis for consistent code formatting.

Copilot uses AI. Check for mistakes.
@@ -186,7 +186,7 @@ const NavItemButton: React.FC<NavItemButtonProps> = ({
const handleMouseEnter = () => {
setIsHovered(true);
// Only show tooltip if navigation is collapsed (text is not visible)
Copy link

Copilot AI Jan 30, 2026

Choose a reason for hiding this comment

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

The comment should be updated to reflect the new condition. Consider updating it to "Only show tooltip if navigation is collapsed (text is not visible) and item has no children (since children are shown in sidebar)"

Suggested change
// Only show tooltip if navigation is collapsed (text is not visible)
// Only show tooltip if navigation is collapsed (text is not visible) and item has no children (since children are shown in sidebar)

Copilot uses AI. Check for mistakes.
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