Skip to content

Google Blockly: place trashcan correctly in RTL languages - #47964

Merged
bencodeorg merged 3 commits into
stagingfrom
ben/ltr-google-blockly-trashcan
Sep 7, 2022
Merged

Google Blockly: place trashcan correctly in RTL languages#47964
bencodeorg merged 3 commits into
stagingfrom
ben/ltr-google-blockly-trashcan

Conversation

@bencodeorg

@bencodeorg bencodeorg commented Sep 6, 2022

Copy link
Copy Markdown
Contributor

Moves the container for the trashcan in Google Blockly to be positioned appropriately (ie, in place of toolbox) in right-to-left languages.

It feels like a better solution would be to render the trashcan as a child of the toolbox SVG element (rather than having to keep track of positioning it at the same location as the toolbox)? Not sure if there's a reason we don't do that already, but didn't feel comfortable making larger changes like that when I don't totally have my Blockly bearings yet :).

Before

image

After

image

Links

Testing story

Tested manually on a level that has a "flyout" but no toolbox (s/poem-art-2021/lessons/1/levels/1) and one that has both a flyout and a toolbox (/s/dance-2019/lessons/1/levels/10?blocklyVersion=Google), and saw the trashcan appearing in the correct location (centered within the flyout in the poem art case, and within the toolbox in the dance party case). Confirmed that trash can continued to appear in correct location in English as well on each of these levels.

@bencodeorg
bencodeorg requested a review from a team September 6, 2022 20:33
@epeach

epeach commented Sep 6, 2022

Copy link
Copy Markdown

It feels like a better solution would be to render the trashcan as a child of the toolbox SVG element (rather than having to keep track of positioning it at the same location as the toolbox)?

I agree! Can we track this as task in Jira so we don't forget?

@epeach epeach left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM!

@bencodeorg

Copy link
Copy Markdown
Contributor Author

It feels like a better solution would be to render the trashcan as a child of the toolbox SVG element (rather than having to keep track of positioning it at the same location as the toolbox)?

I agree! Can we track this as task in Jira so we don't forget?

Can do! Item here: https://codedotorg.atlassian.net/browse/STAR-2403

@bencodeorg
bencodeorg merged commit 01969f0 into staging Sep 7, 2022
@bencodeorg
bencodeorg deleted the ben/ltr-google-blockly-trashcan branch September 7, 2022 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants