From 32814a71e36817a69b8a78a6ed2e25936e4cdc56 Mon Sep 17 00:00:00 2001 From: Vim USDS Date: Tue, 26 Jul 2022 11:03:36 -0700 Subject: [PATCH] Modify disabled label tooltip message --- client/src/components/J40Map.tsx | 1 + client/src/data/copy/explore.tsx | 5 +++++ client/src/intl/en.json | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/client/src/components/J40Map.tsx b/client/src/components/J40Map.tsx index 9aa8b24b..d639efbc 100644 --- a/client/src/components/J40Map.tsx +++ b/client/src/components/J40Map.tsx @@ -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)} /> diff --git a/client/src/data/copy/explore.tsx b/client/src/data/copy/explore.tsx index 129bd7b4..a22a868c 100644 --- a/client/src/data/copy/explore.tsx +++ b/client/src/data/copy/explore.tsx @@ -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', diff --git a/client/src/intl/en.json b/client/src/intl/en.json index e4c97f99..792f0db3 100644 --- a/client/src/intl/en.json +++ b/client/src/intl/en.json @@ -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."