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
The headlessui modal's behavior is similar to the mui modal, where it adds padding to the document element. However, mui has a class called .mui-fixed to help the fixed element position persist.
Scrolling is blocked as soon as a modal is opened. This prevents interacting with the background when the modal should be the only interactive content. However, removing the scrollbar can make your fixed positioned elements move. In this situation, you can apply a global .mui-fixed class name to tell MUI to handle those elements.
Does the headless UI have that too? Or are there workarounds?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
The headlessui modal's behavior is similar to the mui modal, where it adds padding to the document element. However, mui has a class called
.mui-fixed
to help the fixed element position persist.Taken from the mui FAQ:
Does the headless UI have that too? Or are there workarounds?
Beta Was this translation helpful? Give feedback.
All reactions