Skip to content

Commit

Permalink
Fix primefaces#5414: p-disabled for svg icons
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Jan 9, 2024
1 parent 57b3a41 commit 19cfba7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
3 changes: 2 additions & 1 deletion components/lib/componentbase/ComponentBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ svg.p-icon {
pointer-events: auto;
}
svg.p-icon g {
svg.p-icon g,
.p-disabled svg.p-icon {
pointer-events: none;
}
Expand Down
20 changes: 10 additions & 10 deletions components/lib/passthrough/tailwind/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2634,16 +2634,16 @@ const Tailwind = {
})
},
picklist: {
root: 'flex',
controls: 'flex flex-col justify-center p-5',
root: 'flex flex-col xl:flex-row',
controls: 'flex flex-row xl:flex-col justify-center p-5',
moveUpButton: {
root: {
className: classNames(
'relative inline-flex cursor-pointer user-select-none items-center align-bottom text-center overflow-hidden m-0', // button component
'text-white bg-blue-500 border border-blue-500 rounded-md',
'transition duration-200 ease-in-out',
'justify-center px-0 py-3', // icon only
'mb-2', // orderlist button
'mr-2 xl:mb-2', // orderlist button
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' //Dark Mode
)
},
Expand All @@ -2656,7 +2656,7 @@ const Tailwind = {
'text-white bg-blue-500 border border-blue-500 rounded-md',
'transition duration-200 ease-in-out',
'justify-center px-0 py-3', // icon only
'mb-2', // orderlist button
'mr-2 xl:mb-2', // orderlist button
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' //Dark Mode
)
},
Expand All @@ -2669,7 +2669,7 @@ const Tailwind = {
'text-white bg-blue-500 border border-blue-500 rounded-md',
'transition duration-200 ease-in-out',
'justify-center px-0 py-3', // icon only
'mb-2', // orderlist button
'mr-2 xl:mb-2', // orderlist button
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' //Dark Mode
)
},
Expand All @@ -2682,7 +2682,7 @@ const Tailwind = {
'text-white bg-blue-500 border border-blue-500 rounded-md',
'transition duration-200 ease-in-out',
'justify-center px-0 py-3', // icon only
'mb-2', // orderlist button
'mr-2 xl:mb-2', // orderlist button
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' //Dark Mode
)
},
Expand All @@ -2708,7 +2708,7 @@ const Tailwind = {
'text-gray-600 dark:bg-blue-900/40': !context.selected
})
}),
buttons: 'flex flex-col justify-center p-5',
buttons: 'flex flex-row xl:flex-col justify-center p-5',
movetotargetbutton: {
root: {
className: classNames(
Expand All @@ -2729,7 +2729,7 @@ const Tailwind = {
'text-white bg-blue-500 border border-blue-500 rounded-md',
'transition duration-200 ease-in-out',
'justify-center px-0 py-3', // icon only
'mb-2', // orderlist button
'mr-2 xl:mb-2', // orderlist button
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' //Dark Mode
)
},
Expand All @@ -2742,7 +2742,7 @@ const Tailwind = {
'text-white bg-blue-500 border border-blue-500 rounded-md',
'transition duration-200 ease-in-out',
'justify-center px-0 py-3', // icon only
'mb-2', // orderlist button
'mr-2 xl:mb-2', // orderlist button
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' //Dark Mode
)
},
Expand All @@ -2755,7 +2755,7 @@ const Tailwind = {
'text-white bg-blue-500 border border-blue-500 rounded-md',
'transition duration-200 ease-in-out',
'justify-center px-0 py-3', // icon only
'mb-2', // orderlist button
'mr-2 xl:mb-2', // orderlist button
'dark:bg-sky-300 dark:border-sky-300 dark:text-gray-900' //Dark Mode
)
},
Expand Down

0 comments on commit 19cfba7

Please sign in to comment.