mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 05:26:47 +00:00
fix(maps): hover labels on the GL maps use the app font, not the map's Arial
This commit is contained in:
@@ -46,6 +46,8 @@ export function mapHoverLabel(map: LabelHost, testId = 'map-hover-label'): MapHo
|
||||
element.dataset.testid = testId;
|
||||
// The pointer's pixel on the map, not a side of the text: placed from the corner either way.
|
||||
element.style.inset = '0px auto auto 0px';
|
||||
// The map's own stylesheet sets Helvetica/Arial on its container; the label speaks in the app's face.
|
||||
element.style.fontFamily = 'var(--font-system)';
|
||||
container.appendChild(element);
|
||||
return element;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user