Closed AndreasHogstrom closed 1 year ago
Hi @AndreasHogstrom,
Thanks for creating an issue. It seems that there is a leftover in the ScaleControl._setScale
function with nautical
unit.
Do you want and take a stab at it and remove the non-breaking space?
Hi @stepankuzmin ! Mind if I draft up a PR to remove the non-breaking space, wanted to start contributing to the repo, thought it would be nice to get this simple one under the belt, thank you!
Sure, go ahead, @kathirgounder 👍
Hi @stepankuzmin ! I drafted a small PR up, was wondering if you had any clue on that test that is failing (if its something flaky or not because it seems unrelated), and on any other steps I should complete for this PR (think I need to still do the changelog since its a visual change and also tag the design team per the launch checklist). Really appreciate it!
ScaleControl with unit nautical renders with space between value and unit while other units (That are handled by Intl.NumberFormat) renders without space (unitDisplay: "narrow").
mapbox-gl-js version: 2.13.0 and current main branch
browser: Any
Steps to Trigger Behavior
Link to Demonstration
https://jsfiddle.net/sy4gpxrL/
Expected Behavior
Consistent formatting between unit types.
Actual Behavior
Inconsistent formatting.