diff --git a/components/src/DesignTokens/Tokens.ts b/components/src/DesignTokens/Tokens.ts index 7b4759af..173aef18 100644 --- a/components/src/DesignTokens/Tokens.ts +++ b/components/src/DesignTokens/Tokens.ts @@ -182,8 +182,8 @@ const semantics: ColourMap = { light: '#ffffff' }, surfaceHover: { - dark: '#0d0d0e', - light: '#ebebeb' + dark: '#121212', + light: '#eee' }, raisedSurfaceFill: { dark: '#393a3b', diff --git a/components/src/maplibre/GeocoderControl/GeocoderControl.stories.svelte b/components/src/maplibre/GeocoderControl/GeocoderControl.stories.svelte index 73d68fdc..8cf86045 100644 --- a/components/src/maplibre/GeocoderControl/GeocoderControl.stories.svelte +++ b/components/src/maplibre/GeocoderControl/GeocoderControl.stories.svelte @@ -34,7 +34,12 @@
- +
diff --git a/components/src/maplibre/GeocoderControl/GeocoderControl.svelte b/components/src/maplibre/GeocoderControl/GeocoderControl.svelte index 1aaf0aa8..55fe9437 100644 --- a/components/src/maplibre/GeocoderControl/GeocoderControl.svelte +++ b/components/src/maplibre/GeocoderControl/GeocoderControl.svelte @@ -61,15 +61,13 @@ diff --git a/components/src/maplibre/Map/Map.stories.svelte b/components/src/maplibre/Map/Map.stories.svelte index a7815f2d..11cf1c13 100644 --- a/components/src/maplibre/Map/Map.stories.svelte +++ b/components/src/maplibre/Map/Map.stories.svelte @@ -9,7 +9,7 @@ import AttributionControl from '../AttributionControl/AttributionControl.svelte'; import GeocoderControl from '../GeocoderControl/GeocoderControl.svelte'; - import { SWRDataLabLight } from '../MapStyle'; + import { SWRDataLabLight, SWRDataLabDark } from '../MapStyle'; import { eclipse } from '@versatiles/style'; import { MapContext } from '../context.svelte'; @@ -74,7 +74,7 @@ - + @@ -134,9 +134,9 @@
- + - + diff --git a/components/src/maplibre/Map/Map.svelte b/components/src/maplibre/Map/Map.svelte index d5496465..d0a72f43 100644 --- a/components/src/maplibre/Map/Map.svelte +++ b/components/src/maplibre/Map/Map.svelte @@ -299,8 +299,8 @@ } .maplibregl-ctrl-top-right { - right: 0; - top: 0; + right: 0.5em; + top: 0.5em; } .maplibregl-ctrl-bottom-left { @@ -311,6 +311,7 @@ .maplibregl-ctrl-bottom-right { bottom: 0.5em; right: 0.5em; + align-items: flex-end; } .maplibregl-ctrl { @@ -319,10 +320,9 @@ } .maplibregl-ctrl-group { - background: var(--color-surfaceFill); + background: var(--color-pageFill); border: 1px solid var(--color-textSecondary); box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.075); - border-radius: var(--br-small); overflow: hidden; } @@ -391,6 +391,9 @@ .maplibregl-marker path { fill: var(--color-textPrimary); } + .maplibregl-marker circle { + fill: var(--color-pageFill); + } .maplibregl-cooperative-gesture-screen { align-items: center; font-family: var(--swr-sans); diff --git a/components/src/maplibre/MapControl/MapControl.svelte b/components/src/maplibre/MapControl/MapControl.svelte index d21e79b2..6ea96462 100644 --- a/components/src/maplibre/MapControl/MapControl.svelte +++ b/components/src/maplibre/MapControl/MapControl.svelte @@ -35,7 +35,5 @@
- {#if children} - {@render children()} - {/if} + {@render children?.()}
diff --git a/components/src/maplibre/MapStyle/SWRDataLabDark.ts b/components/src/maplibre/MapStyle/SWRDataLabDark.ts index a0899cc4..c69f1149 100644 --- a/components/src/maplibre/MapStyle/SWRDataLabDark.ts +++ b/components/src/maplibre/MapStyle/SWRDataLabDark.ts @@ -18,13 +18,13 @@ const tokens = { sans_bold: ['SWR Sans Bold'], background: { stops: [ - [8, 'hsl(210, 9%, 13%)'], + [8, 'hsl(210, 3%, 10%)'], [10, '#1e1f22'] ] }, water: 'hsl(210, 12%, 7%)', water_light: 'hsl(210, 12%, 8%)', - water_ocean: 'hsl(214, 25%, 7%)', + water_ocean: 'hsl(214, 5%, 5%)', marsh: 'hsl(180, 3%, 35%)', grass: 'hsl(170, 20%, 14%)', grass_dark: 'hsl(170, 16%, 12%)', diff --git a/components/src/maplibre/ScaleControl/ScaleControl.svelte b/components/src/maplibre/ScaleControl/ScaleControl.svelte index 4e8ec9aa..1023a69c 100644 --- a/components/src/maplibre/ScaleControl/ScaleControl.svelte +++ b/components/src/maplibre/ScaleControl/ScaleControl.svelte @@ -21,6 +21,7 @@ font-weight: 400; font-size: var(--fs-small-3); font-family: var(--swr-text); + margin-bottom: 0.2em; } }