@@ -36,9 +36,7 @@ const DropdownWrapper = styled.ul`
36
36
background-color: ${ prop ( 'Button.hover.background' ) } ;
37
37
color: ${ prop ( 'Button.hover.foreground' ) } ;
38
38
39
- & button, & a {
40
- color: ${ prop ( 'Button.hover.foreground' ) } ;
41
- }
39
+ * { color: ${ prop ( 'Button.hover.foreground' ) } ; }
42
40
}
43
41
44
42
li {
@@ -48,17 +46,21 @@ const DropdownWrapper = styled.ul`
48
46
align-items: center;
49
47
50
48
& button,
49
+ & button span,
51
50
& a {
52
51
color: ${ prop ( 'primaryTextColor' ) } ;
53
52
width: 100%;
54
53
text-align: left;
54
+ justify-content: left;
55
55
padding: ${ remSize ( 8 ) } ${ remSize ( 16 ) } ;
56
56
}
57
+
58
+ & button span { padding: 0px }
57
59
}
58
60
` ;
59
61
60
62
// TODO: Add Icon to the left of the items in the menu
61
- const MaybeIcon = ( Element , label ) => Element && < Element aria-label = { label } /> ;
63
+ // const MaybeIcon = (Element, label) => Element && <Element aria-label={label} />;
62
64
63
65
const Dropdown = ( { items, align } ) => (
64
66
< DropdownWrapper align = { align } >
@@ -67,7 +69,7 @@ const Dropdown = ({ items, align }) => (
67
69
title, icon, href, action
68
70
} ) => (
69
71
< li key = { `nav-${ title && title . toLowerCase ( ) } ` } >
70
- { MaybeIcon ( icon , `Navigate to ${ title } ` ) }
72
+ { /* { MaybeIcon(icon, `Navigate to ${title}`) } */ }
71
73
{ href
72
74
? < IconButton to = { href } > { title } </ IconButton >
73
75
: < IconButton onClick = { ( ) => action ( ) } > { title } </ IconButton > }
0 commit comments