Skip to content

Commit

Permalink
Merge pull request #6066 from melloware/PR6063
Browse files Browse the repository at this point in the history
Fix #6063: Menu Tailwind content CSS
  • Loading branch information
nitrogenous authored Mar 14, 2024
2 parents a454984 + 25566b7 commit 34f7868
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/doc/menu/theming/tailwinddoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,21 @@ const Tailwind = {
menu: {
className: classNames('m-0 p-0 list-none', 'outline-none')
},
content: ({ context }) => ({
content: ({ state }) => ({
className: classNames(
'text-gray-700 dark:text-white/80 transition-shadow duration-200 rounded-none',
'hover:text-gray-700 dark:hover:text-white/80 hover:bg-gray-200 dark:hover:bg-gray-800/80', // Hover
{
'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90': context.focused
'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90': state.focused
}
)
}),
action: {
className: classNames('text-gray-700 dark:text-white/80 py-3 px-5 select-none', 'cursor-pointer flex items-center no-underline overflow-hidden relative')
},
menuitem: {
className: classNames('hover:bg-gray-200')
},
icon: 'text-gray-600 dark:text-white/70 mr-2',
submenuheader: {
className: classNames('m-0 p-3 text-gray-700 dark:text-white/80 bg-white dark:bg-gray-900 font-bold rounded-tl-none rounded-tr-none')
Expand Down

0 comments on commit 34f7868

Please sign in to comment.