Modify disabled label tooltip message

This commit is contained in:
Vim USDS 2022-07-26 11:03:36 -07:00
parent 2282620bc7
commit 32814a71e3
3 changed files with 10 additions and 0 deletions

View file

@ -510,6 +510,7 @@ const J40Map = ({location}: IJ40Interface) => {
onClick={onClickGeolocate}
trackUserLocation={windowWidth < constants.USWDS_BREAKPOINTS.MOBILE_LG}
showUserHeading={windowWidth < constants.USWDS_BREAKPOINTS.MOBILE_LG}
disabledLabel={intl.formatMessage(EXPLORE_COPY.MAP.GEOLOC_MSG_DISABLED)}
/>
</div>
</div>

View file

@ -169,6 +169,11 @@ export const MAP = defineMessages({
defaultMessage: 'Finding location...',
description: 'On the explore the map page, on the map, this is the message above the gelocation icon that geolocation is locating.',
},
GEOLOC_MSG_DISABLED: {
id: 'explore.map.page.map.geolocation.disabled',
defaultMessage: 'Geolocation disabled',
description: 'On the explore the map page, on the map, this is the message above the gelocation icon that geolocation is disabled.',
},
// GEOLOC_MSG_OFF: {
// id: 'explore.map.page.map.geolocation.off',
// defaultMessage: 'Geolocation off',

View file

@ -343,6 +343,10 @@
"defaultMessage": "Communities identified as disadvantaged by the map are those that are marginalized, underserved, and overburdened by pollution. These communities are at or above the thresholds in one or more of eight categories of criteria.",
"description": "On the explore the map page, the description of the legend"
},
"explore.map.page.map.geolocation.disabled": {
"defaultMessage": "Geolocation disabled",
"description": "On the explore the map page, on the map, this is the message above the gelocation icon that geolocation is disabled."
},
"explore.map.page.map.geolocation.locating": {
"defaultMessage": "Finding location...",
"description": "On the explore the map page, on the map, this is the message above the gelocation icon that geolocation is locating."