fix: close icon postion error (#775)

This commit is contained in:
DiamondThree
2023-02-03 11:32:20 +08:00
committed by GitHub
parent c61be05944
commit 189f51df25
2 changed files with 3 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ const StyledIconButton = styled(IconButton)<
Pick<ModalCloseButtonProps, 'top' | 'right'>
>(({ top, right }) => {
return {
position: 'absolute',
position: top ? 'absolute' : 'unset',
top: top ?? 24,
right: right ?? 40,
};