From 92373c0c05df55989e3e94e55aaa0ba4f6c79e1e Mon Sep 17 00:00:00 2001 From: Jonathan Olson Date: Mon, 15 Jul 2024 13:12:05 -0600 Subject: [PATCH] Wrap chemical formulas in LTR marks, see https://github.com/phetsims/chipper/issues/1355, https://github.com/phetsims/joist/issues/973, https://github.com/phetsims/build-a-molecule/issues/220 --- js/common/view/SingleCollectionBoxNode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/common/view/SingleCollectionBoxNode.js b/js/common/view/SingleCollectionBoxNode.js index 4f4dc90c..81942264 100644 --- a/js/common/view/SingleCollectionBoxNode.js +++ b/js/common/view/SingleCollectionBoxNode.js @@ -26,7 +26,7 @@ class SingleCollectionBoxNode extends CollectionBoxNode { super( box, toModelBounds, showDialogCallback ); assert && assert( box.capacity === 1 ); this.insertChild( 0, new RichText( StringUtils.fillIn( buildAMoleculeStrings.collectionSinglePattern, { - general: box.moleculeType.getGeneralFormulaFragment(), + general: StringUtils.wrapLTR( box.moleculeType.getGeneralFormulaFragment() ), display: box.moleculeType.getDisplayName() } ), { font: new PhetFont( { size: 16, weight: 'bold' } ),