<p></p>
<p dir="auto">Thanks <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/k-yle/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/k-yle">@k-yle</a> for your suggestion - I think it's reasonable to highlight the comment, but I think we would need a different approach to the implementation.</p>
<p dir="auto">We try to avoid writing our own custom CSS, and to use <a href="https://getbootstrap.com/docs/5.1/getting-started/introduction/" rel="nofollow">Bootstrap components and utilities</a> instead. In particular this helps with future refactoring, where we can change variables (like colours, border radius, etc) in one place and for that to be applied automatically and consistently throughout the site. This means that we don't want to copy+paste values (like colour values), and we don't want to create more custom CSS to maintain.</p>
<p dir="auto">Also, you can see there is a problem with padding within the border here - the C of Comment is touching the border, and for all other bootstrap components that have borders (e.g. <a href="https://getbootstrap.com/docs/5.1/components/alerts/" rel="nofollow">alerts</a> ) there is a gap between the border and the content. To be clear, I'm not asking you to add a <code class="notranslate">padding</code> property to your custom CSS, rather that if you want to use a border to highlight the content, then you need to pick a bootstrap component (or utility) that has a border and use that. The component will then come with appropriate padding, border radius, etc, automatically. You'll also need to use the same component, with the border turned off, for other comments so that they don't look different when highlighted (e.g. the highlighted comment is narrower due to additional padding).</p>
<p dir="auto">Finally, there might be alternatives to having borders (and therefore additional padding), like changing the background colour or something else. I encourage you to have a think about and research what other options might fit the task of highlighting the comment that fit naturally with Bootstrap.</p>

<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/3869#issuecomment-1370758173">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPJTM7Z54UVQOEYCITWQVHODANCNFSM6AAAAAATN37YRY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMA5JIUJKH5MNDZJ3LWQVHODA5CNFSM6AAAAAATN37YR2WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSRWQOB2.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/3869/c1370758173</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/3869#issuecomment-1370758173",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3869#issuecomment-1370758173",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>