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.
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.Other information