@@ -2,7 +2,7 @@ import ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown';
22import { Theme } from '@mui/material' ;
33import { MouseEvent , useState } from 'react' ;
44import { Button , Menu , MenuItem } from '../../base' ;
5- import { iconSmall } from '../../constants/iconsSizes' ;
5+ import { iconXSmall } from '../../constants/iconsSizes' ;
66import { ALICE_BLUE , CHINESE_SILVER , NOT_FOUND , styled } from '../../theme' ;
77
88interface VisibilityChipMenuProps {
@@ -43,8 +43,9 @@ const StyledButton = styled(Button)(() => ({
4343} ) ) ;
4444
4545const 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' ,
4849 borderRadius : '0.25rem' ,
4950 border : `1px solid ${ NOT_FOUND } ` ,
5051 background :
@@ -55,7 +56,7 @@ const StyledDiv = styled('div')(({ theme, enabled }: { theme?: Theme; enabled: b
5556 display : 'flex' ,
5657 justifyContent : 'center' ,
5758 alignItems : 'center' ,
58- width : '4.5rem ' ,
59+ width : '3.8rem ' ,
5960 fontSize : '0.75rem' ,
6061 fontFamily : theme ?. typography . fontFamily
6162} ) ) ;
@@ -99,8 +100,8 @@ const VisibilityChipMenu: React.FC<VisibilityChipMenuProps> = ({
99100 data-testid = { `design-visibility-${ value . toLowerCase ( ) } ` }
100101 >
101102 < StyledDiv enabled = { enabled } >
102- < span > { value } </ span >
103- { enabled && < ArrowDropDownIcon { ...iconSmall } /> }
103+ < span style = { { fontSize : '0.7rem' } } > { value } </ span >
104+ { enabled && < ArrowDropDownIcon style = { { ...iconXSmall } } /> }
104105 </ StyledDiv >
105106 </ StyledButton >
106107
0 commit comments