You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tailwind styles are not working with react aria modal if either the imortant flag of tailwind config is set to any value or the id='root' is not set to the body tag in index.html but to one of the children of the body tag.
🤔 Expected Behavior?
The tailwind styles should be applied independently from the tailwind config important flag or where the id='root' is put.
😯 Current Behavior
React Aria modal adds the div for the modal inside the body tag, but outside of the element marked with id='root'. if the tailwind config is set to important: '#root', the tailwind styles are not applied to the modal, so the modal AND it's content are not styled at all. If I move the id='root' to the body tag, everything works fine. If I remove important: '#root' from the tailwind config, everything works fine.
In my index.html:
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
Provide a general summary of the issue here
Tailwind styles are not working with react aria modal if either the imortant flag of tailwind config is set to any value or the id='root' is not set to the body tag in index.html but to one of the children of the body tag.
🤔 Expected Behavior?
The tailwind styles should be applied independently from the tailwind config important flag or where the id='root' is put.
😯 Current Behavior
React Aria modal adds the div for the modal inside the body tag, but outside of the element marked with
id='root'
. if the tailwind config is set toimportant: '#root'
, the tailwind styles are not applied to the modal, so the modal AND it's content are not styled at all. If I move the id='root' to the body tag, everything works fine. If I removeimportant: '#root'
from the tailwind config, everything works fine.In my index.html:
In my tailwind config:
Usage of react aria modal:
💁 Possible Solution
No response
🔦 Context
No response
🖥️ Steps to Reproduce
Just add important: '#root' to your tailwind config and have index.html in this manner:
Version
1.4.1
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
Windows 11
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered: