Skip to content

Commit

Permalink
default accessibleName for InfoButton, phetsims/models-of-the-hydroge…
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Oct 14, 2024
1 parent 4d7f8fb commit bd92f5e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/SceneryPhetStrings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ type StringsType = {
'zoomOutStringProperty': LocalizedStringProperty;
'measuringTapeStringProperty': LocalizedStringProperty;
'measuringTapeTipStringProperty': LocalizedStringProperty;
'infoStringProperty': LocalizedStringProperty;
}
};

Expand Down
4 changes: 3 additions & 1 deletion js/buttons/InfoButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { TColor, Path } from '../../../scenery/js/imports.js';
import infoCircleSolidShape from '../../../sherpa/js/fontawesome-5/infoCircleSolidShape.js';
import RoundPushButton, { RoundPushButtonOptions } from '../../../sun/js/buttons/RoundPushButton.js';
import sceneryPhet from '../sceneryPhet.js';
import SceneryPhetStrings from '../SceneryPhetStrings.js';

type SelfOptions = {
iconFill?: TColor;
Expand All @@ -33,7 +34,8 @@ export default class InfoButton extends RoundPushButton {
baseColor: 'rgb( 238, 238, 238 )',
xMargin: 10,
yMargin: 10,
touchAreaDilation: 10
touchAreaDilation: 10,
accessibleName: SceneryPhetStrings.a11y.infoStringProperty
}, providedOptions );

options.content = new Path( infoCircleSolidShape, {
Expand Down
3 changes: 3 additions & 0 deletions scenery-phet-strings_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,9 @@
},
"measuringTapeTip": {
"value": "Measuring Tape Tip"
},
"info": {
"value": "Info"
}
}
}

0 comments on commit bd92f5e

Please sign in to comment.