Skip to content

Commit

Permalink
Fix #5676: Dropdown Tailwind disabled item (#5677)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Jan 3, 2024
1 parent c7fe6c9 commit bd1bf3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/doc/dropdown/theming/tailwinddoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ const Tailwind = {
'text-gray-700': !context.focused && !context.selected,
'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90': context.focused && !context.selected,
'bg-blue-400 text-blue-700 dark:bg-blue-400 dark:text-white/80': context.focused && context.selected,
'bg-blue-50 text-blue-700 dark:bg-blue-300 dark:text-white/80': !context.focused && context.selected
'bg-blue-50 text-blue-700 dark:bg-blue-300 dark:text-white/80': !context.focused && context.selected,
'opacity-60 select-none pointer-events-none cursor-default': context.disabled
}
)
}),
Expand Down
3 changes: 2 additions & 1 deletion components/lib/passthrough/tailwind/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,8 @@ const Tailwind = {
'text-gray-700 hover:text-gray-700 hover:bg-gray-200 dark:text-white/80 dark:hover:bg-gray-800': !context.focused && !context.selected,
'bg-gray-300 text-gray-700 dark:text-white/80 dark:bg-gray-800/90 hover:text-gray-700 hover:bg-gray-200 dark:text-white/80 dark:hover:bg-gray-800': context.focused && !context.selected,
'bg-blue-100 text-blue-700 dark:bg-blue-400 dark:text-white/80': context.focused && context.selected,
'bg-blue-50 text-blue-700 dark:bg-blue-300 dark:text-white/80': !context.focused && context.selected
'bg-blue-50 text-blue-700 dark:bg-blue-300 dark:text-white/80': !context.focused && context.selected,
'opacity-60 select-none pointer-events-none cursor-default': context.disabled
})
}),
itemGroup: {
Expand Down

0 comments on commit bd1bf3d

Please sign in to comment.