Skip to content

Commit

Permalink
Merge pull request #28 from spicy-ui/alpha.8
Browse files Browse the repository at this point in the history
Alpha 8: Minor menu fixes
  • Loading branch information
South-Paw authored Oct 28, 2020
2 parents 86045c6 + def01a5 commit 3001bcf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spicy-ui/core",
"version": "0.0.1-alpha.7",
"version": "0.0.1-alpha.8",
"description": "A React component library to spice up your UI",
"keywords": [
"react",
Expand Down
10 changes: 6 additions & 4 deletions src/system/components/Menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ const Menu: ComponentTheme = {
minWidth: '56',
display: 'flex',
flexDirection: 'column',
bg: colorMode('white', 'gray.800')(props),
border: '1px',
borderColor: transparentize(0.6, get(props.theme.colors, colorMode('gray.300', 'gray.600')(props))),
borderColor: transparentize(0.6, get(props.theme.colors, colorMode('gray.300', 'gray.900')(props))),
borderRadius: 'sm',
boxShadow: 'sm',
overflow: 'hidden',
}),
};

Expand All @@ -33,10 +35,10 @@ const MenuItem: ComponentTheme = {
transitionDuration: get(props.theme, 'transitions.duration.300'),
transitionTimingFunction: get(props.theme, 'transitions.timing.inOut'),
':not(:disabled):hover': {
bg: transparentize(0.8, get(props.theme.colors, 'gray.100')),
bg: transparentize(0.8, get(props.theme.colors, colorMode('gray.100', 'gray.700')(props))),
},
':active': {
bg: transparentize(0.7, get(props.theme.colors, 'gray.100')),
bg: transparentize(0.7, get(props.theme.colors, colorMode('gray.100', 'gray.700')(props))),
},
}),
};
Expand All @@ -47,7 +49,7 @@ const MenuDivider: ComponentTheme = {
border: 0,
borderBottom: '1px solid',
borderColor: 'inherit',
color: colorMode('gray.300', 'gray.600')(props),
color: colorMode('gray.300', 'gray.900')(props),
opacity: 0.6,
}),
};
Expand Down

1 comment on commit 3001bcf

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 Netlify deployed spicy-ui as draft

https://5f9927a0a8261646c4d51f8c--spicy-ui.netlify.app

Please sign in to comment.