Skip to content

Commit

Permalink
Fix primefaces#6063: Menu Tailwind content CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Feb 29, 2024
1 parent a2a2f11 commit 26e8804
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion components/doc/menu/theming/tailwinddoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Tailwind = {
menu: {
className: classNames('m-0 p-0 list-none', 'outline-none')
},
content: ({ context }) => ({
content: ({ context }) => ({
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
Expand All @@ -35,6 +35,9 @@ const Tailwind = {
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
4 changes: 2 additions & 2 deletions components/lib/passthrough/tailwind/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1843,12 +1843,12 @@ const Tailwind = {
menu: {
className: classNames('m-0 p-0 list-none', 'outline-none')
},
content: ({ state }) => ({
content: ({ context }) => ({
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': state.focused
'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90': context.focused
}
)
}),
Expand Down

0 comments on commit 26e8804

Please sign in to comment.