Skip to content

Commit

Permalink
Changing Property to StringProperty, see phetsims/chipper#1310
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinVallejo committed Aug 29, 2022
1 parent cf27582 commit a8a5b6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion js/Dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export default class Dialog extends Popupable( Panel, 1 ) {
let voicingNameMultilink: UnknownMultilink;
if ( options.closeButtonVoicingDialogTitle ) {
const titleProperty = typeof options.closeButtonVoicingDialogTitle === 'string' ? new TinyProperty( options.closeButtonVoicingDialogTitle ) : options.closeButtonVoicingDialogTitle;
voicingNameMultilink = Multilink.multilink( [ sunStrings.a11y.titleClosePatternProperty, titleProperty ], ( titleClosePattern, titleString ) => {
voicingNameMultilink = Multilink.multilink( [ sunStrings.a11y.titleClosePatternStringProperty, titleProperty ], ( titleClosePattern, titleString ) => {
closeButton.voicingNameResponse = StringUtils.fillIn( titleClosePattern, {
title: titleString
} );
Expand Down
10 changes: 5 additions & 5 deletions js/sunStrings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import sun from './sun.js';
type StringsType = {
'sun': {
'title': string;
'titleProperty': TReadOnlyProperty<string>;
'titleStringProperty': TReadOnlyProperty<string>;
};
'a11y': {
'numberSpinnerRoleDescription': string;
'numberSpinnerRoleDescriptionProperty': TReadOnlyProperty<string>;
'numberSpinnerRoleDescriptionStringProperty': TReadOnlyProperty<string>;
'close': string;
'closeProperty': TReadOnlyProperty<string>;
'closeStringProperty': TReadOnlyProperty<string>;
'closed': string;
'closedProperty': TReadOnlyProperty<string>;
'closedStringProperty': TReadOnlyProperty<string>;
'titleClosePattern': string;
'titleClosePatternProperty': TReadOnlyProperty<string>;
'titleClosePatternStringProperty': TReadOnlyProperty<string>;
}
};

Expand Down

0 comments on commit a8a5b6a

Please sign in to comment.