File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -104,15 +104,15 @@ export const MenuItemLi = withProps<{ depth: number }>(styled.li)`
104
104
export const menuItemDepth = {
105
105
0 : css `
106
106
opacity: 0.7;
107
- text-transform: uppercase ;
107
+ text-transform: ${ ( { theme } ) => theme . menu . groupItems . textTransform } ;
108
108
font-size: 0.8em;
109
109
padding-bottom: 0;
110
110
cursor: default;
111
111
color: ${ props => props . theme . colors . text } ;
112
112
` ,
113
113
1 : css `
114
114
font-size: 0.929em;
115
- text-transform: uppercase ;
115
+ text-transform: ${ ( { theme } ) => theme . menu . level1Items . textTransform } ;
116
116
&:hover {
117
117
color: ${ props => props . theme . colors . main } ;
118
118
}
Original file line number Diff line number Diff line change @@ -60,6 +60,12 @@ const defaultTheme: ThemeInterface = {
60
60
menu : {
61
61
width : '260px' ,
62
62
backgroundColor : '#fafafa' ,
63
+ groupItems : {
64
+ textTransform : 'uppercase' ,
65
+ } ,
66
+ level1Items : {
67
+ textTransform : 'none' ,
68
+ } ,
63
69
} ,
64
70
logo : {
65
71
maxHeight : ( { menu } ) => menu . width ,
@@ -167,6 +173,12 @@ export interface ResolvedThemeInterface {
167
173
menu : {
168
174
width : string ;
169
175
backgroundColor : string ;
176
+ groupItems : {
177
+ textTransform : string ;
178
+ } ;
179
+ level1Items : {
180
+ textTransform : string ;
181
+ } ;
170
182
} ;
171
183
logo : {
172
184
maxHeight : string ;
You can’t perform that action at this time.
0 commit comments