When creating a modal dialog that masks the page behind it, the page should not be scrollable.
We can do this by adding overflow: hidden onto the body element, however, we should use a CSS class to provide this functionality (so it can be easily overwritten by the theme).
We should also make sure that the class name is removed when the dialog is hidden or destroyed.
When creating a modal dialog that masks the page behind it, the page should not be scrollable. We can do this by adding overflow: hidden onto the body element, however, we should use a CSS class to provide this functionality (so it can be easily overwritten by the theme). We should also make sure that the class name is removed when the dialog is hidden or destroyed.