fix: Icon size stroke in MenuItem (#1545)
* icon size change * stroke prop * lint fix * lint refix * wrong repo change
This commit is contained in:
@ -1,3 +1,6 @@
|
|||||||
import { FunctionComponent } from 'react';
|
import { FunctionComponent } from 'react';
|
||||||
|
|
||||||
export type IconComponent = FunctionComponent<{ size?: number }>;
|
export type IconComponent = FunctionComponent<{
|
||||||
|
size?: number;
|
||||||
|
stroke?: number;
|
||||||
|
}>;
|
||||||
|
|||||||
@ -18,7 +18,9 @@ export function MenuItemLeftContent({ LeftIcon, text }: OwnProps) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<StyledMenuItemLeftContent>
|
<StyledMenuItemLeftContent>
|
||||||
{LeftIcon && <LeftIcon size={theme.icon.size.md} />}
|
{LeftIcon && (
|
||||||
|
<LeftIcon size={theme.icon.size.md} stroke={theme.icon.stroke.sm} />
|
||||||
|
)}
|
||||||
<StyledMenuItemLabel hasLeftIcon={!!LeftIcon}>
|
<StyledMenuItemLabel hasLeftIcon={!!LeftIcon}>
|
||||||
<OverflowingTextWithTooltip text={text} />
|
<OverflowingTextWithTooltip text={text} />
|
||||||
</StyledMenuItemLabel>
|
</StyledMenuItemLabel>
|
||||||
|
|||||||
Reference in New Issue
Block a user