From edd152910d7c16ca0ba839ba32bdbf366587f6c1 Mon Sep 17 00:00:00 2001 From: brendanlaschke Date: Fri, 10 Nov 2023 11:52:50 +0100 Subject: [PATCH] Fix icon picker width and add Icon Title (#2418) - fixed icon picker width - added icon title --- .../modules/ui/input/button/components/LightIconButton.tsx | 4 +++- front/src/modules/ui/input/components/IconPicker.tsx | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/front/src/modules/ui/input/button/components/LightIconButton.tsx b/front/src/modules/ui/input/button/components/LightIconButton.tsx index 33198bf0c..db6317547 100644 --- a/front/src/modules/ui/input/button/components/LightIconButton.tsx +++ b/front/src/modules/ui/input/button/components/LightIconButton.tsx @@ -18,7 +18,7 @@ export type LightIconButtonProps = { disabled?: boolean; focus?: boolean; onClick?: (event: MouseEvent) => void; -} & Pick, 'aria-label'>; +} & Pick, 'aria-label' | 'title'>; const StyledButton = styled.button< Pick @@ -90,6 +90,7 @@ export const LightIconButton = ({ disabled = false, focus = false, onClick, + title, }: LightIconButtonProps) => { const theme = useTheme(); return ( @@ -103,6 +104,7 @@ export const LightIconButton = ({ className={className} size={size} active={active} + title={title} > {Icon && } diff --git a/front/src/modules/ui/input/components/IconPicker.tsx b/front/src/modules/ui/input/components/IconPicker.tsx index dd7baf469..fadb2acc9 100644 --- a/front/src/modules/ui/input/components/IconPicker.tsx +++ b/front/src/modules/ui/input/components/IconPicker.tsx @@ -84,6 +84,7 @@ export const IconPicker = ({ variant={variant} /> } + dropdownMenuWidth={168} dropdownComponents={ { onChange({ iconKey, Icon: icons[iconKey] });