Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #5296: Tailwind dialog mask props #5305

Merged
merged 1 commit into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading