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: MenuItem disabled color #9923

Merged
merged 2 commits into from
Jan 30, 2025
Merged

Conversation

magrinj
Copy link
Member

@magrinj magrinj commented Jan 30, 2025

Fix #9874

@magrinj magrinj marked this pull request as ready for review January 30, 2025 09:06
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR improves the visibility of disabled menu items by replacing opacity-based styling with direct color changes and removing the chevron icon when disabled.

  • Modified packages/twenty-ui/src/navigation/menu-item/internals/components/StyledMenuItemBase.tsx to remove opacity:0.4 styling in favor of theme.font.color.tertiary
  • Updated packages/twenty-ui/src/navigation/menu-item/components/MenuItem.tsx to hide chevron right icon for disabled items
  • Changed packages/twenty-ui/src/navigation/menu-item/internals/components/MenuItemLeftContent.tsx to use theme.font.color.light instead of hardcoded gray35
  • Renamed isDisabled prop to disabled across components for consistency

3 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

Comment on lines +46 to +50
if (!isUndefined(disabled) && disabled !== false) {
return css`
color: ${theme.font.color.tertiary};
`;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

style: The disabled check !isUndefined(disabled) && disabled !== false could be simplified to just disabled === true for better readability and to prevent edge cases.

Copy link
Member

@charlesBochet charlesBochet left a comment

Choose a reason for hiding this comment

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

TY!

@charlesBochet charlesBochet merged commit e7da9b6 into main Jan 30, 2025
43 checks passed
@charlesBochet charlesBochet deleted the feat/menu-item-disabled-color branch January 30, 2025 09:23
eliezer-rodrigues037 pushed a commit to mind-developer/kvoip-v2 that referenced this pull request Jan 30, 2025
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.

Fix group by disabled colors
2 participants