Greater-London-Authority / ldn-viz-tools

https://greater-london-authority.github.io/ldn-viz-tools/
1 stars 0 forks source link

Alignment within `MapControlGroup` #294

Closed jamesscottbrown closed 1 month ago

jamesscottbrown commented 2 months ago

Currently the MapControlZoom component is aligned with the left edge of the parent MapControlGroup. This is correct when the position is TopLeft/MiddleLeft/BottomLeft, but not for TopRight/MiddleRight/BottomRight.

For example, this:

<MapControlGroup position="TopRight">
    <MapControlLocationSearch {adapter} {onSearchError} hideGeolocator/>
    <MapControlZoom />
</MapControlGroup>

Currently renders as:

left-aligned-full

But it would be better if it rendered like this:

right-aligned-full