Skip to content

Commit

Permalink
fix: do not uppercase menu items by default
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Jun 26, 2018
1 parent 11947ed commit 0d45cc2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SideMenu/styled.elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ export const MenuItemLi = withProps<{ depth: number }>(styled.li)`
export const menuItemDepth = {
0: css`
opacity: 0.7;
text-transform: uppercase;
text-transform: ${({ theme }) => theme.menu.groupItems.textTransform};
font-size: 0.8em;
padding-bottom: 0;
cursor: default;
color: ${props => props.theme.colors.text};
`,
1: css`
font-size: 0.929em;
text-transform: uppercase;
text-transform: ${({ theme }) => theme.menu.level1Items.textTransform};
&:hover {
color: ${props => props.theme.colors.main};
}
Expand Down
12 changes: 12 additions & 0 deletions src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ const defaultTheme: ThemeInterface = {
menu: {
width: '260px',
backgroundColor: '#fafafa',
groupItems: {
textTransform: 'uppercase',
},
level1Items: {
textTransform: 'none',
},
},
logo: {
maxHeight: ({ menu }) => menu.width,
Expand Down Expand Up @@ -167,6 +173,12 @@ export interface ResolvedThemeInterface {
menu: {
width: string;
backgroundColor: string;
groupItems: {
textTransform: string;
};
level1Items: {
textTransform: string;
};
};
logo: {
maxHeight: string;
Expand Down

0 comments on commit 0d45cc2

Please sign in to comment.