Skip to content

[Bug]: Nested Modals causes content shift when scrollbar is there #655

@vicky-comeau

Description

@vicky-comeau

Contact Details

No response

What happened?

https://gsoftdev.atlassian.net/browse/EFE-249
React-aria's usePreventScroll is what handles the removal of the scrollbar and prevents the body from shifting. Once another modal opens, the scrollbar is no longer there so it removes the padding from the html tag.

Component

Modal & Dialog

Component Version

latest

Which browsers are you seeing the problem on?

No response

Mobile Device

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions