Skip to content

Commit

Permalink
Remove border styles in overflowing popups (#8260)
Browse files Browse the repository at this point in the history
* Remove border styles in overflowing popups

* Document `leaflet-popup-scrolled` CSS selector

* Be explicit about which type of selector
  • Loading branch information
Malvoz authored May 24, 2022
1 parent 399ed21 commit 714b9e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions dist/leaflet.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions src/layer/Popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 714b9e2

Please sign in to comment.