Closed stemilymill closed 2 years ago
Investigating...
I was instructed to use Molecules and Light as the exemplar for how to create keyboard help. It explicitly sets lineWrap
in MoleculesAndLightKeyboardHelpContent:
const rowOptions = { labelOptions: { lineWrap: 200 } };
const playPauseRow = KeyboardHelpSection.createPlayPauseKeyRow( pauseOrPlayShortcutString, pauseOrPlayShortcutDescriptionString, rowOptions );
const stepForwardRow = KeyboardHelpSection.createStepForwardKeyRow( stepForwardShortcutString, stepForwardShortcutDescriptionString, rowOptions );
... which looks like this:
Fourier therefore followed the same pattern. The relevant code is in GameControlsHelpSection.js, which is explicitly setting lineWrap
:
const rowOptions = { labelOptions: { lineWrap: 200 } };
const checkAnswerRow = KeyboardHelpSection.createGlobalHotkeyRow(
fourierMakingWavesStrings.keyboardHelpDialog.checkYourAnswer,
fourierMakingWavesStrings.a11y.keyboardHelpDialog.checkYourAnswerDescription,
new LetterKeyNode( 'C' ),
rowOptions
);
Since I don't think lineWrap is useful here, I've removed it. See screenshot below with stringTest=double
and stringTest=long
. Pushed to master and 1.0 branches. Ready for review in next RC.
Ready for review in next RC. To verify:
?stringTest=double
?stringTest=long
Win10 Chrome v. 94.0.4606.61
for https://github.com/phetsims/qa/issues/711
In the Wave Game screen, in the keyboard shortcuts dialog, the "Check your answer" text wraps with ?stringTest=double whereas all other text shrinks to fit. I did not see this in other string tests.
?stringTest=double
?stringTest=long
no query