Skip to content

Commit

Permalink
Merge pull request Expensify#27954 from bernhardoj/fix/27863-map-attr…
Browse files Browse the repository at this point in the history
…ibution-hover

Fix map view attribution text is not visible on hover
  • Loading branch information
cristipaval authored Sep 26, 2023
2 parents 3402597 + 7fe488a commit cfad43f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/MapView/MapView.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import responder from './responder';
import utils from './utils';

import CONST from '../../CONST';
import * as StyleUtils from '../../styles/StyleUtils';
import themeColors from '../../styles/themes/default';
import Direction from './Direction';
import {MapViewHandle, MapViewProps} from './MapViewTypes';

Expand Down Expand Up @@ -89,6 +91,7 @@ const MapView = forwardRef<MapViewHandle, MapViewProps>(
latitude: initialState.location[1],
zoom: initialState.zoom,
}}
style={StyleUtils.getTextColorStyle(themeColors.mapAttributionText) as React.CSSProperties}
mapStyle={styleURL}
>
{waypoints?.map(({coordinate, markerComponent, id}) => {
Expand Down
1 change: 1 addition & 0 deletions src/styles/themes/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ const darkTheme = {
QRLogo: colors.green400,
starDefaultBG: 'rgb(254, 228, 94)',
loungeAccessOverlay: colors.blue800,
mapAttributionText: colors.black,
};

darkTheme.PAGE_BACKGROUND_COLORS = {
Expand Down
1 change: 1 addition & 0 deletions src/styles/themes/light.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const lightTheme = {
QRLogo: colors.green400,
starDefaultBG: 'rgb(254, 228, 94)',
loungeAccessOverlay: colors.blue800,
mapAttributionText: colors.black,
};

lightTheme.PAGE_BACKGROUND_COLORS = {
Expand Down

0 comments on commit cfad43f

Please sign in to comment.