Skip to content

Commit 0d45cc2

Browse files
committed
fix: do not uppercase menu items by default
1 parent 11947ed commit 0d45cc2

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

src/components/SideMenu/styled.elements.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,15 @@ export const MenuItemLi = withProps<{ depth: number }>(styled.li)`
104104
export const menuItemDepth = {
105105
0: css`
106106
opacity: 0.7;
107-
text-transform: uppercase;
107+
text-transform: ${({ theme }) => theme.menu.groupItems.textTransform};
108108
font-size: 0.8em;
109109
padding-bottom: 0;
110110
cursor: default;
111111
color: ${props => props.theme.colors.text};
112112
`,
113113
1: css`
114114
font-size: 0.929em;
115-
text-transform: uppercase;
115+
text-transform: ${({ theme }) => theme.menu.level1Items.textTransform};
116116
&:hover {
117117
color: ${props => props.theme.colors.main};
118118
}

src/theme.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ const defaultTheme: ThemeInterface = {
6060
menu: {
6161
width: '260px',
6262
backgroundColor: '#fafafa',
63+
groupItems: {
64+
textTransform: 'uppercase',
65+
},
66+
level1Items: {
67+
textTransform: 'none',
68+
},
6369
},
6470
logo: {
6571
maxHeight: ({ menu }) => menu.width,
@@ -167,6 +173,12 @@ export interface ResolvedThemeInterface {
167173
menu: {
168174
width: string;
169175
backgroundColor: string;
176+
groupItems: {
177+
textTransform: string;
178+
};
179+
level1Items: {
180+
textTransform: string;
181+
};
170182
};
171183
logo: {
172184
maxHeight: string;

0 commit comments

Comments
 (0)