diff --git a/packages/hurumap-core/src/Location/Location.snap.js b/packages/hurumap-core/src/Location/Location.snap.js index a31669970..3b5a9b795 100644 --- a/packages/hurumap-core/src/Location/Location.snap.js +++ b/packages/hurumap-core/src/Location/Location.snap.js @@ -20,11 +20,11 @@ exports[`Location renders unchanged 1`] = ` > Country - Kenya - +
County - Isiolo - +
diff --git a/packages/hurumap-core/src/LocationTag/LocationTag.js b/packages/hurumap-core/src/LocationTag/LocationTag.js index f2e7de035..248fc81a9 100644 --- a/packages/hurumap-core/src/LocationTag/LocationTag.js +++ b/packages/hurumap-core/src/LocationTag/LocationTag.js @@ -61,7 +61,7 @@ const LevelTypography = styled("h6", { }; }); -const NameTypography = styled("span")(({ theme }) => { +const NameTypography = styled("div")(({ theme }) => { return { fontSize: theme.typography.pxToRem(9), fontWeight: "bold", diff --git a/packages/hurumap-core/src/LocationTag/LocationTag.snap.js b/packages/hurumap-core/src/LocationTag/LocationTag.snap.js index 8748a3ba5..c943f6504 100644 --- a/packages/hurumap-core/src/LocationTag/LocationTag.snap.js +++ b/packages/hurumap-core/src/LocationTag/LocationTag.snap.js @@ -10,11 +10,11 @@ exports[`LocationTag renders unchanged 1`] = ` > region - Region - + `; diff --git a/packages/hurumap-next/src/Map/Layers.js b/packages/hurumap-next/src/Map/Layers.js index a802af5e1..5cba19185 100644 --- a/packages/hurumap-next/src/Map/Layers.js +++ b/packages/hurumap-next/src/Map/Layers.js @@ -88,6 +88,19 @@ function Layers({ top: 0, ...PopUpLocationTagProps?.sx, }} + NameTypographyProps={{ + style: { + minWidth: 60, + textAlign: "center", + }, + }} + LevelTypographyProps={{ + style: { + top: -12, + left: "50%", + transform: "translateX(-50%)", + }, + }} /> ,