Skip to content

AO3-7290 Maintain scroll position when TOS popup appears#5576

Open
marcus8448 wants to merge 3 commits intootwcode:masterfrom
marcus8448:AO3-7290
Open

AO3-7290 Maintain scroll position when TOS popup appears#5576
marcus8448 wants to merge 3 commits intootwcode:masterfrom
marcus8448:AO3-7290

Conversation

@marcus8448
Copy link
Member

Issue

https://otwarchive.atlassian.net/browse/AO3-7290

Purpose

Modifies the Terms of Service popup to have a fixed (screen-space) position and to hide the main content without changing the page layout. This allows for the browser's scroll position to be maintained when the popup appears.

Unfortunately I couldn't come up with a nice way to automatically test scrolling, but in lieu of that I've added tests for the popup in general.

Credit

marcus8448 (he/him)

Helper methods have some weird magic to get loaded, preventing them from being mocked easily. This seems like the least-complicated way to avoid that.
I don't think it's worth the hacks needed to get the mocks to work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant