fix: view dropdown incorrect button position and floating icon button doesn't match design (#1458)
* fix: view dropdown incorrect button position * fix: className instead of style drill down * fix: view drop down width
This commit is contained in:
@ -16,9 +16,9 @@ const StyledFloatingIconButtonGroupContainer = styled.div`
|
||||
|
||||
export type FloatingIconButtonGroupProps = Pick<
|
||||
FloatingIconButtonProps,
|
||||
'size'
|
||||
'size' | 'className'
|
||||
> & {
|
||||
children: React.ReactElement[];
|
||||
children: React.ReactNode[];
|
||||
};
|
||||
|
||||
export function FloatingIconButtonGroup({
|
||||
@ -49,6 +49,10 @@ export function FloatingIconButtonGroup({
|
||||
additionalProps.size = size;
|
||||
}
|
||||
|
||||
if (!React.isValidElement(child)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return React.cloneElement(child, additionalProps);
|
||||
})}
|
||||
</StyledFloatingIconButtonGroupContainer>
|
||||
|
||||
Reference in New Issue
Block a user