Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOP-4757 #1159

Merged
merged 3 commits into from
Jul 11, 2024
Merged

DOP-4757 #1159

merged 3 commits into from
Jul 11, 2024

Conversation

mayaraman19
Copy link
Collaborator

@mayaraman19 mayaraman19 commented Jul 10, 2024

Stories/Links:

DOP-4757

Current Behavior:

The Language Selector popover floats away when scrolling (see ticket) if an option has not been selected. This is because portalContainer.current is undefined when rendering the Language Selector, for some reason. This PR removes "portaling" behavior for the Language Selector so that it doesn't float away anymore. Ideally, we would do away with using portalContainer.current during render since this is discouraged in React, but doing so caused a lot of Z-index and CSS issues so I figured this was the easiest solution...

See dropdown here in production

Staging Links:

Staging link (dark mode disabled)

Check out the selector in the sidenav (near the bottom) as well to ensure behavior is unchanged.

Notes:

README updates

    • This PR introduces changes that should be reflected in the README, and I have made those updates.
    • This PR does not introduce changes that should be reflected in the README

@mayaraman19 mayaraman19 changed the title Dop 4757 DOP-4757 Jul 10, 2024
Copy link
Collaborator

@seungpark seungpark left a comment

Choose a reason for hiding this comment

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

this LGTM. verified associated changes ie. search filters, legacy dropdown, version selector

@mayaraman19 mayaraman19 merged commit 487a446 into main Jul 11, 2024
4 checks passed
@mayaraman19 mayaraman19 deleted the DOP-4757 branch July 11, 2024 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants