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

T287146: language selector follow up #53

Merged
merged 4 commits into from
Nov 22, 2021
Merged

Conversation

medied
Copy link
Contributor

@medied medied commented Nov 16, 2021

Context here: https://phabricator.wikimedia.org/T287146#7505785

Using the same languageSelector state, I realized I could also just switch the main search div on or off, then subsequently realized we could refactor a bit to abstract the languageSelector conditional logic to just one instance: within the same inline.js Popover we are either showing the language selector UI or the search UI. The benefit of this being that now the dimensions of the language selector can be set without interference.

This is how I should have done it from the beginning.

@stephanebisson stephanebisson merged commit 542aaf6 into main Nov 22, 2021
@stephanebisson stephanebisson deleted the T287146-follow-up branch November 22, 2021 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants