You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current TooltipIcon implementation requires including the icon as a child element. Most other Carbon React components that include an icon do so via the renderIcon prop. I'm requesting that you update TooltipIcon to follow this pattern, and allow specifying the icon via a renderIcon prop.
Justification
This change would provide a programming interface that is consistent with other Carbon React components that display an icon (Button, Link, OverflowMenu, and Tag).
Desired UX and success metrics
Developers would be able to use a consistent programming interface to specify the icon to be rendered by any Carbon React component that can render an icon.
"Must have" functionality
N/A
Specific timeline issues / requests
N/A
Available extra resources
I'm sure I could implement this myself, but it would take some time as I would need to study other Carbon React components that implement the renderIcon prop to see how it's done. It would probably be faster for someone on the Carbon React development team to do this. But I'll be glad to give it a shot.
Carbon is a collaborative system. We encourage teams to build components and
submit them for integration as either add-ons or core components.
The text was updated successfully, but these errors were encountered:
Summary
The current
TooltipIcon
implementation requires including the icon as a child element. Most other Carbon React components that include an icon do so via therenderIcon
prop. I'm requesting that you updateTooltipIcon
to follow this pattern, and allow specifying the icon via arenderIcon
prop.Justification
This change would provide a programming interface that is consistent with other Carbon React components that display an icon (
Button
,Link
,OverflowMenu
, andTag
).Desired UX and success metrics
Developers would be able to use a consistent programming interface to specify the icon to be rendered by any Carbon React component that can render an icon.
"Must have" functionality
N/A
Specific timeline issues / requests
N/A
Available extra resources
I'm sure I could implement this myself, but it would take some time as I would need to study other Carbon React components that implement the
renderIcon
prop to see how it's done. It would probably be faster for someone on the Carbon React development team to do this. But I'll be glad to give it a shot.Carbon is a collaborative system. We encourage teams to build components and
submit them for integration as either add-ons or core components.
The text was updated successfully, but these errors were encountered: