Skip to content

Restrict scroll to just the modal body - #907

Open
aswallace wants to merge 4 commits into
mainfrom
bugfix/modals-content-overlapping
Open

Restrict scroll to just the modal body#907
aswallace wants to merge 4 commits into
mainfrom
bugfix/modals-content-overlapping

Conversation

@aswallace

@aswallace aswallace commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Context

Resolves #815.
For the base modal class, the entire modal had scrolling applied because of FluentUI internal styling. A side effect of this was that the "body" content of the modal often overlapped with the header and/or footer.

Changes

Restricts scroll styling to just the body and applies a gradient to the bottom of the container when there's still scrollable content.

Testing

Manually tested each of our modal types

Screenshots

Before

image

After

image

@aswallace aswallace self-assigned this Aug 19, 2026
@aswallace aswallace linked an issue Aug 19, 2026 that may be closed by this pull request
@aswallace
aswallace marked this pull request as ready for review August 19, 2026 18:34
if (!el) return;

const checkScroll = () => {
const isOverflowing = el.scrollHeight > el.clientHeight;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be like hasOverflowingContent or something.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed in 179109a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Modals content overlapping

2 participants