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

fix(menu): remove explicit color token from icons #16490

Merged
merged 1 commit into from
May 21, 2024

Conversation

janhassel
Copy link
Member

I noticed that the icons in Menus (MenuButton, ComboButton) didn't render in the correct color when the item was disabled or danger (hover). This PR removes the explicit color definition and therefore relies on the default currentColor to sync the icons with the text.

Scenario Screenshot
Before – disabled image
After – disabled image
Before – danger image
After – danger image

Changelog

Removed

  • Removed explicit color definition from icons in menus

Testing / Reviewing

Storybook

@alisonjoseph I noticed that you explicitly mentioned adding colors to the svgs in #15236. I tested several scenarios in storybook and the color seems to be inherited correctly, but I wanted to make sure I'm not missing an edge case you found?

@janhassel janhassel requested a review from a team as a code owner May 16, 2024 14:43
Copy link

netlify bot commented May 16, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 8648146
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/66461b823a01320008ce1cb5
😎 Deploy Preview https://deploy-preview-16490--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@alisonjoseph alisonjoseph left a comment

Choose a reason for hiding this comment

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

This LGTM, all variations seem to work. I looked over my previous PR and I'm not sure why I added these in.

@tay1orjones tay1orjones added this pull request to the merge queue May 21, 2024
Merged via the queue into carbon-design-system:main with commit 01c0683 May 21, 2024
20 checks passed
@janhassel janhassel deleted the menu-icons-color branch May 22, 2024 07:49
@carbon-automation
Copy link
Contributor

Hey there! v11.58.0 was just released that references this issue/PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants