@@ -14,15 +14,15 @@ const StyledButton = styled(Button)<{ variant: ButtonVariant; width?: string }>`
1414 flex-direction: row;
1515 font-size: 1.6rem;
1616 position: relative;
17- justify-content: center ;
17+ justify-content: space-between ;
1818 line-height: 2rem;
1919 min-height: 2.5rem;
20- padding: 0 1 .5rem 0 0.5rem ;
20+ padding: 1rem 2 .5rem 1rem 1rem ;
2121 text-align: left;
2222 text-decoration: none;
2323 transition: all 0.2s ease-in-out;
2424 user-select: none;
25- ${ ( props ) => props . width ? `width: ${ props . width } ` : null }
25+ ${ ( props ) => props . width ? `width: ${ props . width } ; ` : null }
2626 -moz-osx-font-smoothing: grayscale;
2727 -webkit-font-smoothing: antialiased;
2828
@@ -40,34 +40,37 @@ const StyledButton = styled(Button)<{ variant: ButtonVariant; width?: string }>`
4040 content: ' ';
4141 display: block;
4242 position: absolute;
43- height: 0.5rem ;
43+ height: 0.6rem ;
4444 margin-top: -0.25rem;
45- right: 0.5rem ;
45+ right: 1rem ;
4646 transform: rotate(135deg);
47- width: 0.5rem ;
47+ width: 0.6rem ;
4848 }
4949` ;
5050
5151const StyledMenu = styled ( Menu ) `
5252 margin-top: -0.6rem;
5353 background-color: ${ palette . white } ;
5454 border: 0.1rem solid ${ palette . pale } ;
55- padding: 0.3rem 0 ;
55+ padding: 0;
5656 cursor: pointer;
5757 color: ${ palette . black } ;
5858
5959 [role="menuitem"] {
60+ display: block;
61+ color: inherit;
62+ text-decoration: none;
6063 font-size: 1.6rem;
6164 min-height: 2.5rem;
6265 line-height: 2rem;
63- padding: 0 0.5rem;
66+ padding: 1rem 0.5rem;
6467 cursor: pointer;
6568 transition: all 0.2s ease-in-out;
6669 -moz-osx-font-smoothing: grayscale;
6770 -webkit-font-smoothing: antialiased;
6871
6972 &:hover {
70- background-color: ${ palette . pale } ;
73+ background-color: ${ palette . neutralLighter } ;
7174 }
7275 }
7376` ;
@@ -82,6 +85,7 @@ interface DropdownMenuButtonProps<T> extends MenuProps<T>, Omit<MenuTriggerProps
8285export const DropdownMenu = < T extends object > (
8386 { text, children, variant, width, disabled, ...props } : DropdownMenuButtonProps < T >
8487) => {
88+ console . log ( 'width' , width ) ;
8589 return (
8690 < MenuTrigger { ...props } >
8791 < StyledButton variant = { variant } width = { width } isDisabled = { disabled } > { text } </ StyledButton >
0 commit comments