From 714b9e23cfbae577636ef5f373c3e94ab20f4e22 Mon Sep 17 00:00:00 2001 From: Robert Linder Date: Tue, 24 May 2022 18:18:24 +0200 Subject: [PATCH] Remove border styles in overflowing popups (#8260) * Remove border styles in overflowing popups * Document `leaflet-popup-scrolled` CSS selector * Be explicit about which type of selector --- dist/leaflet.css | 2 -- src/layer/Popup.js | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/leaflet.css b/dist/leaflet.css index aacd02136..ddf5d41ce 100644 --- a/dist/leaflet.css +++ b/dist/leaflet.css @@ -540,8 +540,6 @@ svg.leaflet-image-layer.leaflet-interactive path { } .leaflet-popup-scrolled { overflow: auto; - border-bottom: 1px solid #ddd; - border-top: 1px solid #ddd; } .leaflet-oldie .leaflet-popup-content-wrapper { diff --git a/src/layer/Popup.js b/src/layer/Popup.js index b1e933ae8..5cf91531e 100644 --- a/src/layer/Popup.js +++ b/src/layer/Popup.js @@ -58,6 +58,8 @@ export var Popup = DivOverlay.extend({ // @option maxHeight: Number = null // If set, creates a scrollable container of the given height // inside a popup if its content exceeds it. + // The scrollable container can be styled using the + // `leaflet-popup-scrolled` CSS class selector. maxHeight: null, // @option autoPan: Boolean = true