Skip to content

Commit

Permalink
update max width for all KeyboardHelpDialogs (HelpContent); remove ve…
Browse files Browse the repository at this point in the history
…rticalIconSpacing, HelpContent.labelWithIcon.labelFirst; see phetsims/friction#158
  • Loading branch information
zepumph committed Jan 26, 2019
1 parent 67e71a1 commit a974c20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/KeyboardHelpDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ define( function( require ) {
} );

// a line to say "tab to get started" below the "Keyboard Shortcuts" 'title'
var tabHintText = new Text( keyboardShortcutsToGetStartedString, { font: HelpContent.DEFAULT_LABEL_FONT } );
var tabHintText = new Text( keyboardShortcutsToGetStartedString, {
font: HelpContent.DEFAULT_LABEL_FONT,
maxWidth: HelpContent.DEFAULT_TEXT_MAX_WIDTH
} );
var tabHintLine = HelpContent.labelWithIcon( tabHintText, new TabKeyNode(), tabToGetStartedString, {
iconOptions: {
tagName: 'p' // because there is only one, and the default is an li tag
Expand Down

0 comments on commit a974c20

Please sign in to comment.