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(icon): fix default icon color inheritence #556

Merged
merged 1 commit into from
Jun 23, 2023
Merged

Conversation

laurenhu
Copy link
Collaborator

@laurenhu laurenhu commented Jun 23, 2023

Describe the problem this PR addresses

This fixes an icon color bug. Icons with no color prop declared are not inheriting the parent color as desired, but inheriting the nearest parent definition of --color, which typically happens on the nearest MTheme. This causes a bug on button loaders where instead of applying the button color, it applies the MTheme color instead.

Describe the changes in this PR

This PR replaces --color: inherit with --color: currentColor, which fixes the color inheritance bug.
Screenshot 2023-06-23 at 4 12 34 PM
Screenshot 2023-06-23 at 4 12 14 PM
Screenshot 2023-06-23 at 4 27 16 PM

Other information

@laurenhu laurenhu requested review from a team as code owners June 23, 2023 20:28
@github-actions
Copy link

Deployed Styleguide and Lab.

Notes
  1. Links may take a few minutes to update after PR is opened or commit is pushed.
  2. Links may become invalidated after PR is merged or closed.
  3. Links for all releases and open PRs can be found on the Maker Deploys page.

@laurenhu laurenhu merged commit c5d15e4 into master Jun 23, 2023
4 checks passed
@laurenhu laurenhu deleted the button-loader branch June 23, 2023 20:39
@github-actions
Copy link

🎉 This PR is included in version 18.0.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

2 participants