Skip to content

Commit

Permalink
Fix primefaces#5444/primefaces#5443: Tailwind fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Jan 9, 2024
1 parent 8c95949 commit 168c6f7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/lib/passthrough/tailwind/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -882,8 +882,8 @@ const Tailwind = {
className: classNames(
'inline-flex items-center',
{
'cursor-pointer': !props.readonly,
'cursor-default': props.readonly
'cursor-pointer': !props.readOnly,
'cursor-default': props.readOnly
},
{
'outline-none outline-offset-0 shadow-[0_0_0_0.2rem_rgba(191,219,254,1)] dark:shadow-[0_0_0_0.2rem_rgba(147,197,253,0.5)]': context.focused
Expand Down Expand Up @@ -1016,7 +1016,7 @@ const Tailwind = {
label: 'font-bold text-center w-full',
icon: ({ props }) => ({
className: classNames(' mr-2', {
'text-gray-600 dark:text-white/70': !props.modelValue,
'text-gray-600 dark:text-white/70': !props.checked,
'text-white': props.checked
})
})
Expand Down Expand Up @@ -1313,8 +1313,8 @@ const Tailwind = {
labelContainer: 'overflow-hidden flex flex-auto cursor-pointer',
label: ({ props }) => ({
className: classNames('block overflow-hidden whitespace-nowrap cursor-pointer overflow-ellipsis', 'text-gray-800 dark:text-white/80', 'p-3 transition duration-200', {
'!p-3': props.display !== 'chip' && (props?.modelValue == null || props?.modelValue == undefined),
'!py-1.5 px-3': props.display === 'chip' && props?.modelValue !== null
'!p-3': props.display !== 'chip' && (props.value == null || props.value == undefined),
'!py-1.5 px-3': props.display === 'chip' && props.value !== null
})
}),
token: {
Expand Down

0 comments on commit 168c6f7

Please sign in to comment.