<p dir="auto">This PR replaces the current Leaflet.contextmenu based context menu by a Bootstrap based version. Adds a new dependency on <a href="https://icons.getbootstrap.com/" rel="nofollow">Bootstrap icons</a></p>
<a href="https://github.com/user-attachments/assets/351e3784-996a-4e3b-a368-b0d0b1401bf2">image.png (view on web)</a>
<p dir="auto"><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #6383.">Fixes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3390934086" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/6383" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/6383/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/6383">#6383</a></p>
<h3 dir="auto">How has this been tested?</h3>
<ul dir="auto">
<li>Local tests on desktop / mobile browsers, checking if all 6 actions are still working</li>
<li>Test all four corners of the screen, dropdown is supposed to stay within map boundaries</li>
<li>LTR and RTL mode</li>
<li>Normal/Dark mode, including currently highlighted menu item</li>
<li>Depending on zoom level, "Query features" and "Add a note here" are disabled</li>
<li>Dropdown is hidden when: (1) clicking on an action, (2) clicking anywhere in the window, (3) panning the map.</li>
</ul>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/6410'>https://github.com/openstreetmap/openstreetmap-website/pull/6410</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6410/commits/cbb10963990e24ee62f18564bc4c2ba59bf55345" class="commit-link">cbb1096</a> Remove leaflet.contextmenu plugin and old contextmenu</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6410/commits/9c64ad73445b86f1748f4161c237ca36c6308701" class="commit-link">9c64ad7</a> Added Bootstrap based contextmenu</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6410/files">13 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6410/files#diff-97d92457f6d9fdf1f937ddfe97aad5f7313ac0cee8894400f984d86f9dfa462c">Vendorfile</a>
(5)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6410/files#diff-cdc070ced1c4000efd1e28357fd26b2fd617d7fccfeae0324222231db75dd6ee">app/assets/javascripts/index.js</a>
(1)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6410/files#diff-3e81b28faf8dfac2dcfdc2454ed4d17ee7b60abfb774f5ea00ed38799e624798">app/assets/javascripts/index/contextmenu.js</a>
(174)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6410/files#diff-e86a39e6d0b163f152db8843fc7d647a3f5d648de4a74f1732bef4474b6e5bc8">app/assets/stylesheets/common.scss</a>
(37)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6410/files#diff-ec635e8918e14ddb395eeb0931b51ec3b0f3df431c87cdbc290119a430395284">app/assets/stylesheets/leaflet-all.scss</a>
(1)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6410/files#diff-0f4bc852f2aa869f27c8a6c8d2223079a4c4671fd1fc158e6846e7786b2f33c0">app/views/layouts/_contextmenu.html.erb</a>
(42)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6410/files#diff-eaeaf6b733bc454c8c41be224e85cdca90bc6e0e5bc1f02f9f86315cfc6fafab">app/views/layouts/map.html.erb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6410/files#diff-c1c619ffb7b249550067cb696b8e7d6c29d1efe2ed4cf5b7a8bb6bed47b409d1">config/initializers/content_security_policy.rb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6410/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
(16)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6410/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519">package.json</a>
(1)
</li>
<li>
<strong>D</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6410/files#diff-1253d29c184933655783507a128bad05d8c6e53347f8bd3da6dc083ccfdf4cae">vendor/assets/leaflet/leaflet.contextmenu.css</a>
(54)
</li>
<li>
<strong>D</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6410/files#diff-42d180ec41f793136d67dda6101391261f2cc563c622be6f0714abb8a5772341">vendor/assets/leaflet/leaflet.contextmenu.js</a>
(592)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6410/files#diff-51e4f558fae534656963876761c95b83b6ef5da5103c4adef6768219ed76c2de">yarn.lock</a>
(5)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6410.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/6410.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6410.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/6410.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6410">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNJPWHUGDBCEUNYEJ33UAON3AVCNFSM6AAAAACHFZX7N6VHI2DSMVQWIX3LMV43ASLTON2WKOZTGQ2DCNZTGE4DQNA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLKSB2W2TYAONIOY5O33UAON3A5CNFSM6AAAAACHFZX7N6WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHM2JFJFQ.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/6410</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/6410",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6410",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>