mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-25 08:44:23 -04:00
Merge pull request #4068 from alphagov/fix-map-key-in-high-contrast
Fix map key in high contrast
This commit is contained in:
@@ -137,17 +137,10 @@
|
|||||||
padding-left: govuk-spacing(8);
|
padding-left: govuk-spacing(8);
|
||||||
line-height: govuk-spacing(7);
|
line-height: govuk-spacing(7);
|
||||||
|
|
||||||
&:before {
|
&__icon {
|
||||||
content: "";
|
|
||||||
display: block;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 3px;
|
left: -5px;
|
||||||
left: govuk-spacing(1);
|
top: -7px;
|
||||||
width: govuk-spacing(6);
|
|
||||||
height: govuk-spacing(6);
|
|
||||||
box-sizing: border-box;
|
|
||||||
margin-right: govuk-spacing(1);
|
|
||||||
transform: rotate(45deg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&--certain {
|
&--certain {
|
||||||
|
|||||||
@@ -1,19 +1,29 @@
|
|||||||
{% macro map(broadcast_message) %}
|
{% macro map(broadcast_message) %}
|
||||||
<div id="area-list-map"></div>
|
<div id="area-list-map"></div>
|
||||||
<p class="area-list-key area-list-key--certain">
|
<p class="area-list-key area-list-key--certain">
|
||||||
<span class="visually-hidden">
|
<svg class="area-list-key__icon" width="50" height="50" viewbox="0 0 50 50" aria-hidden="true" xmlns="http://www.w3.org/2000/svg">
|
||||||
An area of {{ (broadcast_message.simple_polygons.estimated_area)|round_to_significant_figures(1)|format_thousands }} square miles
|
<rect x="0" y="0" width="100%" height="100%" fill="#FFFFFF" />
|
||||||
|
<polygon points="25 5, 45 25, 25 45, 5 25" stroke="#0B0B0C" stroke-width="2" fill="#96C6E2" />
|
||||||
|
</svg>
|
||||||
|
<span class="govuk-visually-hidden">
|
||||||
|
An area of {{ (broadcast_message.simple_polygons.estimated_area)|round_to_significant_figures(1)|format_thousands }} square miles
|
||||||
</span>
|
</span>
|
||||||
Will get
|
Will get
|
||||||
<span class="visually-hidden">the</span>
|
<span class="govuk-visually-hidden">
|
||||||
|
the
|
||||||
|
</span>
|
||||||
alert
|
alert
|
||||||
</p>
|
</p>
|
||||||
<p class="area-list-key area-list-key--likely">
|
<p class="area-list-key area-list-key--likely">
|
||||||
<span class="visually-hidden">
|
<svg class="area-list-key__icon" width="50" height="50" viewbox="0 0 50 50" aria-hidden="true" xmlns="http://www.w3.org/2000/svg">
|
||||||
An extra area of {{ (broadcast_message.simple_polygons_with_bleed.estimated_area - broadcast_message.simple_polygons.estimated_area)|round_to_significant_figures(1)|format_thousands }} square miles is
|
<rect x="0" y="0" width="100%" height="100%" fill="#FFFFFF" />
|
||||||
|
<polygon points="25 5, 45 25, 25 45, 5 25" stroke="#005ea5" stroke-opacity="1" stroke-width="2" stroke-linecap="square" stroke-linejoin="round" stroke-dasharray="4,7.5,5,7.5,8,8,5,8,7.5,8,5,8,7,8,5,8,4" fill="#2B8CC4" fill-opacity="0.15" />
|
||||||
|
</svg>
|
||||||
|
<span class="govuk-visually-hidden">
|
||||||
|
An extra area of {{ (broadcast_message.simple_polygons_with_bleed.estimated_area - broadcast_message.simple_polygons.estimated_area)|round_to_significant_figures(1)|format_thousands }} square miles is
|
||||||
</span>
|
</span>
|
||||||
Likely to get
|
Likely to get
|
||||||
<span class="visually-hidden">
|
<span class="govuk-visually-hidden">
|
||||||
the
|
the
|
||||||
</span>
|
</span>
|
||||||
alert
|
alert
|
||||||
|
|||||||
Reference in New Issue
Block a user