Skip to content

Commit

Permalink
Make aria-label translatable.
Browse files Browse the repository at this point in the history
  • Loading branch information
10upsimon committed Jan 20, 2025
1 parent c3fc125 commit c4ef671
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion assets/js/components/TourTooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ import Card, { CardActions } from '@material/react-card';
import classnames from 'classnames';
import PropTypes from 'prop-types';

/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';

/**
* Internal dependencies
*/
Expand Down Expand Up @@ -101,7 +106,7 @@ export default function TourTooltip( {
hideTooltipTitle
icon={ <CloseIcon width="14" height="14" /> }
onClick={ closeProps.onClick }
aria-label="Close"
aria-label={ __( 'Close', 'google-site-kit' ) }
/>
</Card>
</div>
Expand Down

0 comments on commit c4ef671

Please sign in to comment.