<p dir="auto">This PR addresses "Share button unusable on a cell phone" issue mentioned in the <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1640457687" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/3988" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/3988/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/3988">#3988</a></p>
<p dir="auto">Added class to track if "Share", "Layer" and "Map Key" buttons have been clicked. <span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #3988.">Fixes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1640457687" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/3988" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/3988/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/3988">#3988</a></p>
<p dir="auto">Change affects "Share" button, "Map Key" button and "Layer" button.</p>
<p dir="auto">To follow the style of the website, all of them have the same visual as "Add a note to the map" button had.</p>
<p dir="auto">Add a note to the map:<br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/55288419/80ca05e8-8ccb-4008-92dc-f58c182b88f2">Screenshot.2024-07-04.162504.png (view on web)</a></p>
<p dir="auto">Share:<br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/55288419/a9af9c48-e9fb-4426-b310-01914ee2664e">Screenshot.2024-07-04.162231.png (view on web)</a></p>
<p dir="auto">Map Key:<br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/55288419/a987983b-76ff-437c-bfe9-ad936f9f3885">Screenshot.2024-07-04.162203.png (view on web)</a></p>
<p dir="auto">Layer:<br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/55288419/135ed0ee-9047-4580-afc9-397bdc3344ff">Screenshot.2024-07-04.162153.png (view on web)</a></p>
<p dir="auto">When both "Add a note to the map" and "Share" are displayed, their visual is same as before:<br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/55288419/0302e460-9bb4-4104-81ba-726cb340e727">Screenshot.2024-07-04.162659.png (view on web)</a></p>

<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/4949'>https://github.com/openstreetmap/openstreetmap-website/pull/4949</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4949/commits/1b9e15f330ea8672e2549ff966925883fe3a775b" class="commit-link">1b9e15f</a>  Share button unusable on a cell phone</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4949/files">4 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4949/files#diff-e15f8139afbbcbe98b89298674e7980a4a4500dbc54a431e1325a11adfe83f83">app/assets/javascripts/leaflet.share.js</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4949/files#diff-47fdb48f632a18a6f55b9db0d4e0b134a4019bd2d0380436fc53e3a4ae0e2604">app/assets/javascripts/leaflet.sidebar.js</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4949/files#diff-e86a39e6d0b163f152db8843fc7d647a3f5d648de4a74f1732bef4474b6e5bc8">app/assets/stylesheets/common.scss</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4949/files#diff-74c3414af0a76b3935f1a316c51c37b9415ded1fd811d596ba523d38e7c1489b">test/system/index_test.rb</a>
    (35)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4949.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4949.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4949.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4949.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/4949">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLL3WR6ZKWXRAU42JFLZKVGXNAVCNFSM6AAAAABKLS5JVCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4TAOJRG43TONY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMB4VBIS4U4JMUIAJDZKVGXNA5CNFSM6AAAAABKLS5JVCWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHI5AUCSE.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/4949</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/4949",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4949",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>