<p></p>
<p><b>@gravitystorm</b> requested changes on this pull request.</p>

<p dir="auto">Thank you for the PR! I've made some requests as inline comments, and I'm happy to discuss them further if required.</p><hr>

<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3907#discussion_r1086499686">app/views/layouts/_flash.html.erb</a>:</p>
<pre style='color:#555'>> @@ -1,5 +1,5 @@
 <% if flash[:error] %>
-  <div class="flash error row mx-0 p-3 align-items-center">
+  <div class="alert alert-danger row mx-0 mb-0 p-3 rounded-0 align-items-center">
</pre>
<p dir="auto">I'm happy to see the move from custom CSS to use the built-in bootstrap alert panels and colours. There's a couple of things here that need addressing though:</p>
<ul dir="auto">
<li>If the <code class="notranslate">flash</code> CSS is no longer required elsewhere, then it should be removed from <code class="notranslate">common.scss</code></li>
<li>Large numbers of tests are failing, since they are looking for the <code class="notranslate">flash</code> and <code class="notranslate">error</code> css classes. The tests need to be updated.</li>
</ul>

<hr>

<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3907#discussion_r1086514346">app/views/site/edit.html.erb</a>:</p>
<pre style='color:#555'>>      <p><%= t "layouts.osm_offline" %></p>
+    </div>
</pre>
<ul dir="auto">
<li>The contents of this <code class="notranslate">div</code> need to be indented. The same with other places where you are wrapping existing code with additional <code class="notranslate">divs</code>.</li>
</ul>

<hr>

<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3907#discussion_r1086516626">app/views/site/edit.html.erb</a>:</p>
<pre style='color:#555'>>    <% elsif Settings.status == "database_readonly" or Settings.status == "api_readonly" %>
+    <div class="alert alert-danger text-center">
</pre>
<p dir="auto">Offline and read_only modes are not "danger" messages, since there's nothing that the user can or has done wrong.</p>
<p dir="auto">If we look at the <code class="notranslate">map_layout</code> helper in <a href="https://github.com/openstreetmap/openstreetmap-website/blob/e443d99edd9c9b68d6c0fa41b028bb9a5cdb07c5/app/controllers/application_controller.rb#L258-L263">https://github.com/openstreetmap/openstreetmap-website/blob/e443d99edd9c9b68d6c0fa41b028bb9a5cdb07c5/app/controllers/application_controller.rb#L258-L263</a> we can see that both are treated as <code class="notranslate">warning</code> messages</p>

<hr>

<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3907#discussion_r1086520253">app/views/site/offline.html.erb</a>:</p>
<pre style='color:#555'>> @@ -1,7 +1,9 @@
+<div class="alert alert-danger text-center">
</pre>
<p dir="auto">For both the offline and edit pages, we end up with "alert"-style banners, but these don't match the flash banners used on the rest of the site, namely:</p>
<ul dir="auto">
<li>They don't stretch across the whole page</li>
<li>They don't have the icon alongside the message</li>
</ul>
<p dir="auto">It would be nice to make them completely consistent, rather than partially consistent. So for example, I would consider reworking this page to use the existing flash messages system to render the alert, for example by using <code class="notranslate">flash.now[:warning] = t("layouts.osm_offline")</code> in the controller. That way any changes made to flash messages elsewhere (e.g. adjusting margins or paddings) will apply automatically to these offline alert messages.</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/3907#pullrequestreview-1269137006">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJ7HI5HTTNVKZD3H73WUEE7NANCNFSM6AAAAAAUC5ITLA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLO43R4RXNW7F5XHQEDWUEE7NA5CNFSM6AAAAAAUC5ITLCWGG33NNVSW45C7OR4XAZNRKB2WY3CSMVYXKZLTORJGK5TJMV32UY3PNVWWK3TUL5UWJTSLUV7G4.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/3907/review/1269137006</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/3907#pullrequestreview-1269137006",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3907#pullrequestreview-1269137006",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>