You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Omits the "begin stack" label to blocks inserted from the flyout in move mode. At this point, the block can be positioned anywhere. It is arguably only a stack once is has been placed on the workspace in a certain position.
Use the block.isDragging method to determine whether a block is inserted on the workspace in move mode.
Reason for Changes
This reduces the amount of information in the screen reader output which should make it easier to parse for screen reader users. Arguably improves the label accuracy.
It feels like block.workspace.isDragging() should cover this case in the getBeginStackLabel function, but does not. What is the difference between block.workspace.isDragging() and block.isDragging()?
Ok. KeyboardMover.mover.isMoving() is false at the time the block label is calculated. Presumably this is because the block is place on the workspace and then put into move mode.
I propose switching block.workspace.isDragging() for block.isDragging() which is true at the time the label is calculated. This address removing the "being stack" prefix for blocks inserted from the flyout and for other blocks already on the workspace put into move mode. Is there any reason we can't do this?
workspace.isDragging is I think if the workspace itself is being dragged. I think that was just straight up a mistake in the original PR, whoops. Thanks for catching this!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The basics
The details
Resolves
Omits the "begin stack" label to blocks inserted from the flyout in move mode. At this point, the block can be positioned anywhere. It is arguably only a stack once is has been placed on the workspace in a certain position.
Fixes #9802
Proposed Changes
Use the
block.isDraggingmethod to determine whether a block is inserted on the workspace in move mode.Reason for Changes
This reduces the amount of information in the screen reader output which should make it easier to parse for screen reader users. Arguably improves the label accuracy.
Test Coverage
None
Documentation
No
Additional Information
N/A