-
Notifications
You must be signed in to change notification settings - Fork 25
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
Updating the vertical position of the zoom-in text box to have its arrow point to the center of the zoom-in button #3453
Updating the vertical position of the zoom-in text box to have its arrow point to the center of the zoom-in button #3453
Conversation
I did have one question, would you like me to do this for the zoom-out text-box as well? I was going to but then realized I probably shouldn't do anything not on the issue explicitly. |
@srihariKrishnaswamy is this just for that one dialog that we took a screenshot of for the issue, or for all of the dialogs that are pointing to an element of the interface? Just making sure bc it should do the latter! |
Yeah I only did the former in the PR, sounds good I'll do it for the other ones as well! |
…ith the arrow in the bottom
…onboarding states to fadeIn since translate in animation was messing with text box positioning
Alright, I went ahead and changed it for all of them! The thing that was messing with the raw transform: translateX/Y(-50%) was that the original fadeInDown/Left/Right animations already had a transform component, so that was getting overwritten. What I newly did was to change all the fadeInDown/Left/Right animations to a simple fadeIn so there are no translation discrepancies. Let me know if you'd like me to resolve it differently though! |
Great sleuthing! Can't wait to get a chance to take a look and test! |
Alright, I fixed all the above except for number 4! The reason for that being the bottom fainter text box and the text box with the arrow are not direct siblings, so working in CSS to position the arrowed text box relative to the bottom one would be a bit difficult & would require me to change how everything else is positioned as well I think. Additionally, in order to fix the first issue you mentioned, I couldn't find the reason why the chinese specifically was causing it to go lower, so I ended up just translating the top up a little bit for those specific arrows you pointed out whenever the language is set to chinese. Let me know if you'd like me to handle this differently though. Thanks! |
Gotcha, no problem!
I think at that point, I'd rather just have them be a few pixels off for the Chinese version. It's still quite close to being centered, so I'd rather not add in that extra odd check! |
Sounds good, I just pushed up a version with those last changes reneged! |
…Webpage into 3378-adjust-instruction-locations-dynamically
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just removed some CSS you forgot to remove and fixed a bug I found when finishing the tutorial in German (not related to your code). Love what you did, it looks much better now!
Resolves #3378
In this PR I align the arrow of the text box that prompts the user to zoom in in the tutorial to the center of the zoom in button. I did this by setting the top of the box to be where the center should be, and adding another parameter in OnboardingStates that translated up the box by 50% of it's height. I also had to replace the fadeInDown/Left/Right animation settings for each arrowed text box with a simple fadeIn animation, since the transformation component of the fadeInDown/Left/Right was overwriting the base transform needed to position each box properly.
Before/After screenshots (if applicable)
Before:
After:
Testing instructions
Things to check before submitting the PR