<p dir="auto">These previews originally accepted colors as inline styles <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="302470753" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/1779" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/1779/hovercard?comment_id=374135049&comment_type=issue_comment" href="https://github.com/openstreetmap/openstreetmap-website/pull/1779#issuecomment-374135049">#1779 (comment)</a>. That was later changed to data attributes + javascript <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="302470753" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/1779" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/1779/hovercard?comment_id=374449624&comment_type=issue_comment" href="https://github.com/openstreetmap/openstreetmap-website/pull/1779#issuecomment-374449624">#1779 (comment)</a>. We can avoid javascript by using inline svgs. We already do this in the map key.</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/4479'>https://github.com/openstreetmap/openstreetmap-website/pull/4479</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4479/commits/4453728a7204f1cbf95355d0280d236a7ae6d94e" class="commit-link">4453728</a>  Preview colour tag value using svg</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4479/files">4 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4479/files#diff-cdc070ced1c4000efd1e28357fd26b2fd617d7fccfeae0324222231db75dd6ee">app/assets/javascripts/index.js</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4479/files#diff-e86a39e6d0b163f152db8843fc7d647a3f5d648de4a74f1732bef4474b6e5bc8">app/assets/stylesheets/common.scss</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4479/files#diff-f787e682da0df0dd52c310ccf1d92b90b1245e4a8951f6f677ed90c09a38a9b2">app/helpers/browse_tags_helper.rb</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4479/files#diff-3c9ba0f9198f856d54c920e1fdd7200521f9b34529cb7e4709eedce6845d5fb7">test/helpers/browse_tags_helper_test.rb</a>
    (4)
  </li>
</ul>

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