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(MenuItem): separate MenuIcon logic from MenuItem #2104

Conversation

YossiSaadi
Copy link
Contributor

@YossiSaadi YossiSaadi requested a review from a team as a code owner May 5, 2024 09:26
Copy link
Member

@talkor talkor left a comment

Choose a reason for hiding this comment

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

💯

packages/core/src/components/Menu/MenuItem/MenuItem.tsx Outdated Show resolved Hide resolved
border-radius: var(--spacing-xs);

&.disabled {
opacity: 0.4;
Copy link
Member

Choose a reason for hiding this comment

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

I know it matches the old style but how does it look with the disabled token?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

exactly the same as before (chromatic did not find any change)

Copy link
Member

Choose a reason for hiding this comment

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

No I mean if you replace the opacity with the disabled token

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 think we have opacity here because of icons and other rendered stuff in the menu item, no?

Copy link
Member

Choose a reason for hiding this comment

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

Oh yeah, makes sense

Base automatically changed from refactor/yossi/Break-MenuItem-to-smaller-pieces---SubMenuIcon-6566973814 to MenuItem-Section-refactor---create-a-base-component-to-be-used-by-custom-implementations-6359753142 May 5, 2024 12:45
…be-used-by-custom-implementations-6359753142' into refactor/yossi/Break-MenuItem-to-smaller-pieces---MenuIcon-6580749432
@YossiSaadi YossiSaadi merged commit c2dec4a into MenuItem-Section-refactor---create-a-base-component-to-be-used-by-custom-implementations-6359753142 May 6, 2024
10 checks passed
@YossiSaadi YossiSaadi deleted the refactor/yossi/Break-MenuItem-to-smaller-pieces---MenuIcon-6580749432 branch May 6, 2024 06:31
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