mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Replace generated content with proper heading
Brings in https://github.com/alphagov/notifications-utils/pull/797 but adapts the CSS so nothing changes visually
This commit is contained in:
@@ -1,20 +1,21 @@
|
|||||||
.broadcast-message-wrapper {
|
.broadcast-message {
|
||||||
|
|
||||||
position: relative;
|
&-wrapper {
|
||||||
width: 100%;
|
position: relative;
|
||||||
max-width: 464px;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
max-width: 464px;
|
||||||
padding: govuk-spacing(9) govuk-spacing(3) govuk-spacing(3) govuk-spacing(3);
|
box-sizing: border-box;
|
||||||
background: $panel-colour;
|
padding: govuk-spacing(9) govuk-spacing(3) govuk-spacing(3) govuk-spacing(3);
|
||||||
box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.05);
|
background: $panel-colour;
|
||||||
border-radius: 5px;
|
box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.05);
|
||||||
white-space: normal;
|
border-radius: 5px;
|
||||||
margin: govuk-spacing(2) 0 govuk-spacing(4) 0;
|
white-space: normal;
|
||||||
clear: both;
|
margin: govuk-spacing(2) 0 govuk-spacing(4) 0;
|
||||||
word-wrap: break-word;
|
clear: both;
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
&:before {
|
&-heading {
|
||||||
content: "Emergency alert";
|
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ Shapely==1.7.1
|
|||||||
awscli-cwlogs>=1.4,<1.5
|
awscli-cwlogs>=1.4,<1.5
|
||||||
itsdangerous==1.1.0
|
itsdangerous==1.1.0
|
||||||
|
|
||||||
git+https://github.com/alphagov/notifications-utils.git@42.2.1#egg=notifications-utils==42.2.1
|
git+https://github.com/alphagov/notifications-utils.git@42.2.2#egg=notifications-utils==42.2.2
|
||||||
git+https://github.com/alphagov/govuk-frontend-jinja.git@v0.5.1-alpha#egg=govuk-frontend-jinja==0.5.1-alpha
|
git+https://github.com/alphagov/govuk-frontend-jinja.git@v0.5.1-alpha#egg=govuk-frontend-jinja==0.5.1-alpha
|
||||||
|
|
||||||
# gds-metrics requires prometheseus 0.2.0, override that requirement as later versions bring significant performance gains
|
# gds-metrics requires prometheseus 0.2.0, override that requirement as later versions bring significant performance gains
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ Shapely==1.7.1
|
|||||||
awscli-cwlogs>=1.4,<1.5
|
awscli-cwlogs>=1.4,<1.5
|
||||||
itsdangerous==1.1.0
|
itsdangerous==1.1.0
|
||||||
|
|
||||||
git+https://github.com/alphagov/notifications-utils.git@42.2.1#egg=notifications-utils==42.2.1
|
git+https://github.com/alphagov/notifications-utils.git@42.2.2#egg=notifications-utils==42.2.2
|
||||||
git+https://github.com/alphagov/govuk-frontend-jinja.git@v0.5.1-alpha#egg=govuk-frontend-jinja==0.5.1-alpha
|
git+https://github.com/alphagov/govuk-frontend-jinja.git@v0.5.1-alpha#egg=govuk-frontend-jinja==0.5.1-alpha
|
||||||
|
|
||||||
# gds-metrics requires prometheseus 0.2.0, override that requirement as later versions bring significant performance gains
|
# gds-metrics requires prometheseus 0.2.0, override that requirement as later versions bring significant performance gains
|
||||||
@@ -34,10 +34,10 @@ prometheus-client==0.8.0
|
|||||||
gds-metrics==0.2.4
|
gds-metrics==0.2.4
|
||||||
|
|
||||||
## The following requirements were added by pip freeze:
|
## The following requirements were added by pip freeze:
|
||||||
awscli==1.18.154
|
awscli==1.18.157
|
||||||
bleach==3.1.4
|
bleach==3.1.4
|
||||||
boto3==1.10.38
|
boto3==1.10.38
|
||||||
botocore==1.18.13
|
botocore==1.18.16
|
||||||
cachetools==4.1.0
|
cachetools==4.1.0
|
||||||
certifi==2020.6.20
|
certifi==2020.6.20
|
||||||
chardet==3.0.4
|
chardet==3.0.4
|
||||||
|
|||||||
@@ -968,9 +968,16 @@ def test_preview_broadcast_message_page(
|
|||||||
'Scotland',
|
'Scotland',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
assert normalize_spaces(
|
||||||
|
page.select_one('h2.broadcast-message-heading').text
|
||||||
|
) == (
|
||||||
|
'Emergency alert'
|
||||||
|
)
|
||||||
|
|
||||||
assert normalize_spaces(
|
assert normalize_spaces(
|
||||||
page.select_one('.broadcast-message-wrapper').text
|
page.select_one('.broadcast-message-wrapper').text
|
||||||
) == (
|
) == (
|
||||||
|
'Emergency alert '
|
||||||
'This is a test'
|
'This is a test'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -784,6 +784,7 @@ def test_view_broadcast_template(
|
|||||||
) == (
|
) == (
|
||||||
normalize_spaces(page.select_one('.broadcast-message-wrapper').text)
|
normalize_spaces(page.select_one('.broadcast-message-wrapper').text)
|
||||||
) == (
|
) == (
|
||||||
|
'Emergency alert '
|
||||||
'This is a test'
|
'This is a test'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user