@@ -2,7 +2,7 @@ import ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown';
2
2
import { Theme } from '@mui/material' ;
3
3
import { MouseEvent , useState } from 'react' ;
4
4
import { Button , Menu , MenuItem } from '../../base' ;
5
- import { iconSmall } from '../../constants/iconsSizes' ;
5
+ import { iconXSmall } from '../../constants/iconsSizes' ;
6
6
import { ALICE_BLUE , CHINESE_SILVER , NOT_FOUND , styled } from '../../theme' ;
7
7
8
8
interface VisibilityChipMenuProps {
@@ -43,8 +43,9 @@ const StyledButton = styled(Button)(() => ({
43
43
} ) ) ;
44
44
45
45
const StyledDiv = styled ( 'div' ) ( ( { theme, enabled } : { theme ?: Theme ; enabled : boolean } ) => ( {
46
- paddingLeft : '0.5rem' ,
47
- paddingRight : enabled ? '0' : '0.5rem' ,
46
+ paddingLeft : '0.3rem' ,
47
+ height : '1.5rem' ,
48
+ paddingRight : enabled ? '0' : '0.3rem' ,
48
49
borderRadius : '0.25rem' ,
49
50
border : `1px solid ${ NOT_FOUND } ` ,
50
51
background :
@@ -55,7 +56,7 @@ const StyledDiv = styled('div')(({ theme, enabled }: { theme?: Theme; enabled: b
55
56
display : 'flex' ,
56
57
justifyContent : 'center' ,
57
58
alignItems : 'center' ,
58
- width : '4.5rem ' ,
59
+ width : '3.8rem ' ,
59
60
fontSize : '0.75rem' ,
60
61
fontFamily : theme ?. typography . fontFamily
61
62
} ) ) ;
@@ -99,8 +100,8 @@ const VisibilityChipMenu: React.FC<VisibilityChipMenuProps> = ({
99
100
data-testid = { `design-visibility-${ value . toLowerCase ( ) } ` }
100
101
>
101
102
< StyledDiv enabled = { enabled } >
102
- < span > { value } </ span >
103
- { enabled && < ArrowDropDownIcon { ...iconSmall } /> }
103
+ < span style = { { fontSize : '0.7rem' } } > { value } </ span >
104
+ { enabled && < ArrowDropDownIcon style = { { ...iconXSmall } } /> }
104
105
</ StyledDiv >
105
106
</ StyledButton >
106
107
0 commit comments