Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/icons/to-newskit-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const StyledIcon = styled.svg<NewsKitIconProps>`
${props =>
props.overrides?.size &&
getSizingCssFromTheme('height', props.overrides.size)}

// If overridden, render SP CSS here instead - this ensures we override fill color from parent SP.
${renderIconStylePreset(true)}
}
Expand All @@ -56,7 +56,8 @@ export const toNewsKitIcon = (
PassedIcon:
| React.ComponentType<EmotionIconProps>
| React.ComponentType<SvgProps>
| EmotionIcon,
| EmotionIcon
| React.ComponentType<any>, // allow icons from other libraries
): NewsKitIcon =>
withOwnTheme(
withTheme<NewsKitIconProps>(
Expand Down
Loading