Leaflet / Leaflet

πŸƒ JavaScript library for mobile-friendly interactive maps πŸ‡ΊπŸ‡¦
https://leafletjs.com
BSD 2-Clause "Simplified" License
40.17k stars 5.75k forks source link

Fix hover underline in flag + Leaflet attribution prefix #9280

Closed rkaravia closed 2 months ago

rkaravia commented 2 months ago

When hovering the Leaflet attribution link that is shown by default on the bottom right of the map, the underline was extending to the space between the flag and the "Leaflet" text, which does not look very nice (see "before" screenshot below). This is fixed by:

The value for the margin-right (0.277em) is based on measuring the width of the space using browser dev tools:

Screenshots

Showing the bottom right corner of debug/tests/esm.html with Firefox responsive design mode at 820x620px with DPR 3.

Before (main branch)

attribution_main

After (this PR)

attribution_PR