Skip to content

Commit

Permalink
Merge pull request #5305 from melloware/PR5296
Browse files Browse the repository at this point in the history
Fix #5296: Tailwind dialog mask props
  • Loading branch information
nitrogenous authored Nov 13, 2023
2 parents 9cc43fb + 6863cff commit c270c51
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions components/doc/dialog/theming/tailwinddoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ const Tailwind = {
footer: {
className: classNames('shrink-0 ', 'border-t-0 bg-white text-gray-700 px-6 pb-6 text-right rounded-b-lg', 'dark:bg-gray-900 dark:text-white/80')
},
mask: ({ props }) => ({
className: classNames('transition duration-200', { 'bg-black/40': props.modal })
mask: ({ state }) => ({
className: classNames('transition duration-200', { 'bg-black/40': state.containerVisible })
}),
transition: ({ props }) => {
return props.position === 'top'
Expand Down
2 changes: 1 addition & 1 deletion components/lib/dialog/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ export const Dialog = React.forwardRef((inProps, ref) => {
{
ref: maskRef,
style: sx('mask'),
className: cx('mask', { maskVisibleState }),
className: cx('mask'),
onPointerUp: onMaskPointerUp
},
ptm('mask')
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 @@ -326,8 +326,8 @@ const Tailwind = {
footer: {
className: classNames('flex gap-2 shrink-0 justify-end align-center', 'border-t-0 bg-white text-gray-700 px-6 pb-6 text-right rounded-b-lg', 'dark:bg-gray-900 dark:text-white/80')
},
mask: ({ props }) => ({
className: classNames('transition duration-200', { 'bg-black/40': props.modal })
mask: ({ state }) => ({
className: classNames('transition duration-200', { 'bg-black/40': state.containerVisible })
}),
transition: ({ props }) => {
return {
Expand Down

0 comments on commit c270c51

Please sign in to comment.