Closed neefrehman closed 8 months ago
Hi @neefrehman, you can try using closeButton: "block"
to fix it. I don't know why using closeButton: "!block"
is not working. It seems to be related to a class merging issue.
Hi @mskelton, I having try to fix this issue. I obtained these class names from this test case. So, I attempted to use tailwind-merge
from https://codesandbox.io/s/musing-flower-xc3vx7?file=/src/index.ts. However, I noticed that tailwind-merge
was not merging class names like sm:!block !block hidden
. I believe that tailwind-merge
should address this. What do you think?
@Alex-Programmer-Bro Yes, that seems to be a tailwind-merge issue. That said, I'm having trouble reproducing the issue as it seems to be working just fine for me.
Closing due to lack of response.
Describe the bug
I'm working on a modal component that uses
slots
, and that also uses responsive styles to ensure that all of thefullscreen
styles are applied until thesm
breakpoint. One piece of this, is ensuring that the hide modal button is shown whenfullscreen === true
or when on mobile, even whenhideCloseButton === true
. My understanding is that the below style object should cover this. But sadly I'm having some trouble getting this working properly.To Reproduce
Link to minimal repro here: https://codesandbox.io/s/confident-http-rvdg8c?file=/src/index.tsx
Expected behavior
The close modal button should display in the following scenarios:
{ hideCloseButton: true, fullscreen: true }
{ hideCloseButton: true, size: 'initial' }
{ hideCloseButton: false | undefined, ...anyOtherProps }
The close modal button should NOT display in the following scenarios:
{ hideCloseButton: true, size: 'md' }
{ hideCloseButton: true, fullscreen: false | undefined }
Desktop (please complete the following information):