Skip to content

Commit

Permalink
Fix #5543: OverlayPanel Tailwind close icon (#5544)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Dec 7, 2023
1 parent 3190cab commit 7fa2207
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
13 changes: 8 additions & 5 deletions components/doc/overlaypanel/theming/tailwinddoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ export function TailwindDoc(props) {
basic: `
const TRANSITIONS = {
overlay: {
enterFromClass: 'opacity-0 scale-75',
enterActiveClass: 'transition-transform transition-opacity duration-150 ease-in',
leaveActiveClass: 'transition-opacity duration-150 ease-linear',
leaveToClass: 'opacity-0'
classNames: {
enter: 'opacity-0 scale-75',
enterActive: 'opacity-100 !scale-100 transition-transform transition-opacity duration-150 ease-in',
exit: 'opacity-100',
exitActive: '!opacity-0 transition-opacity duration-150 ease-linear'
}
}
};
Expand All @@ -20,11 +22,12 @@ const Tailwind = {
className: classNames(
'bg-white text-gray-700 border-0 rounded-md shadow-lg',
'z-40 transform origin-center',
'absolute left-0 top-0',
'absolute left-0 top-0 mt-3',
'before:absolute before:w-0 before:-top-3 before:h-0 before:border-transparent before:border-solid before:ml-6 before:border-x-[0.75rem] before:border-b-[0.75rem] before:border-t-0 before:border-b-white dark:before:border-b-gray-900',
'dark:border dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80'
)
},
closeButton: 'flex items-center justify-center overflow-hidden absolute top-0 right-0 w-6 h-6',
content: 'p-5 items-center flex',
transition: TRANSITIONS.overlay
}
Expand Down
1 change: 1 addition & 0 deletions components/lib/passthrough/tailwind/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ const Tailwind = {
'dark:border dark:border-blue-900/40 dark:bg-gray-900 dark:text-white/80'
)
},
closeButton: 'flex items-center justify-center overflow-hidden absolute top-0 right-0 w-6 h-6',
content: 'p-5 items-center flex',
transition: TRANSITIONS.overlay
},
Expand Down

0 comments on commit 7fa2207

Please sign in to comment.