-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
enhancementA suggestion to add to or change behaviorA suggestion to add to or change behavior
Description
Expected Behavior
Should be able to define an icon color to be used by default in Anchors. I'd expect the logic to be:
- If the caller defines a
color
directly as prop on the icon, this color should apply. - If the caller defines a
color
on the Anchor itself, this color should apply to the anchor text + icon (this is current behavior) - If no
color
prop is used on Anchor or icon, thentheme.anchor.icon.color
should be applied to the icon. - If
theme.anchor.icon.color
is not defined, then just apply the anchor color to icon (this is current behavior).
This will allow easier enforcement across applications of what currently is just guidance: https://github.com/grommet/grommet-theme-hpe/wiki/Migrating-from-HPE-Theme-4.x-to-5.x#updated-anchor-treatment
Actual Behavior
No ability to theme icon color.
URL, screen shot, or Codepen exhibiting the issue
Steps to Reproduce
Your Environment
- Grommet version:
- Browser Name and version:
- Operating System and version (desktop or mobile):
Metadata
Metadata
Assignees
Labels
enhancementA suggestion to add to or change behaviorA suggestion to add to or change behavior