Skip to content

Commit

Permalink
Merge pull request #1217 from weather-gov/ik/1192-alert-map-controls-…
Browse files Browse the repository at this point in the history
…stack

Fix floating map controls and attribution
  • Loading branch information
partly-igor committed May 20, 2024
2 parents fcdde1a + 8fc0538 commit 8b39204
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions web/themes/new_weather_theme/assets/css/styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion web/themes/new_weather_theme/assets/css/styles.css.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -277,3 +277,11 @@ svg[data-wind-direction] {
}
}


/* Custom isolation utilities
------------------------------------- */
.isolation-isolate {
isolation: isolate;
}


Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ uswds-init:
minified: true

uswds-customized:
version: 2024-05-01
version: 2024-05-15
css:
theme:
assets/css/styles.css: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
{{ drupal_block("weathergov_dynamic_safety_information", { weather_event: alert.event }) }}

<div class="grid-container margin-top-2 padding-x-0 tablet:padding-x-2">
<div class="grid-container padding-0 bg-white shadow-1 grid-col-12">
<div class="grid-container padding-0 isolation-isolate grid-col-12">
<div class="grid-row wx-radar-container">
<wx-alert-map class="grid-col-12" data-geo-json="{{ alert.geometry | json_encode | url_encode }}" data-alert-id="{{ alert.alertId}}" data-lat="{{ weather.point.lat }}" data-lon="{{ weather.point.lon }}">
<div id="wx_alert_map_{{ alert.alertId }}" style="height: 100%"></div>
Expand Down

0 comments on commit 8b39204

Please sign in to comment.