feat: Use custom ARIA roledescriptions for different block types by gonfunko · Pull Request #9507 · RaspberryPiFoundation/blockly

Choose a reason for hiding this comment

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

Replaceable was meant to hint at it being a shadow more than its type, so I think I agree with this. If custom block types facilitate special labels then it could still work for shadow blocks (if that ever actually makes sense).

Separately, should this be protected? I assumed we never designed Block functionality for inheritance since Blockly doesn't support custom BlockSvg class implementations. I'm wondering if this needs to be something overridable in the block definition instead.