Skip to content

Commit

Permalink
fix: changed menu styles
Browse files Browse the repository at this point in the history
  • Loading branch information
hirotomoyamada committed Aug 5, 2023
1 parent 6f2b2f2 commit 558f3dc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/dull-grapes-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@yamada-ui/theme': patch
---

Changed menu styles.
15 changes: 8 additions & 7 deletions packages/theme/src/components/menu.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { ComponentStyle } from '@yamada-ui/core'
import { transparentizeColor } from '@yamada-ui/utils'

export const Menu: ComponentStyle = {
baseStyle: {
baseStyle: ({ theme: t, colorMode: m }) => ({
button: {
transitionProperty: 'common',
transitionDuration: 'normal',
Expand All @@ -23,14 +24,14 @@ export const Menu: ComponentStyle = {
transitionProperty: 'background',
transitionDuration: 'ultra-fast',
transitionTimingFunction: 'ease-in',
_hover: {
bg: ['gray.100', 'whiteAlpha.50'],
},
_focus: {
bg: ['gray.200', 'whiteAlpha.100'],
bg: [transparentizeColor(`gray.200`, 0.56)(t, m), 'whiteAlpha.100'],
},
_hover: {
bg: ['gray.200', 'whiteAlpha.50'],
},
_active: {
bg: ['gray.300', 'whiteAlpha.200'],
bg: [transparentizeColor(`gray.300`, 0.64)(t, m), 'whiteAlpha.200'],
},
_disabled: {
opacity: 0.4,
Expand All @@ -54,5 +55,5 @@ export const Menu: ComponentStyle = {
fontWeight: 'semibold',
color: ['blackAlpha.600', 'whiteAlpha.600'],
},
},
}),
}

0 comments on commit 558f3dc

Please sign in to comment.