diff --git a/app/assets/images/exclamation.svg b/app/assets/images/exclamation.svg deleted file mode 100644 index e530210e1..000000000 --- a/app/assets/images/exclamation.svg +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/app/assets/stylesheets/components/broadcast-message.scss b/app/assets/stylesheets/components/broadcast-message.scss index 672ce5207..71bfd20f7 100644 --- a/app/assets/stylesheets/components/broadcast-message.scss +++ b/app/assets/stylesheets/components/broadcast-message.scss @@ -21,19 +21,23 @@ position: absolute; top: -1px; left: -1px; - padding: govuk-spacing(2) + 1px govuk-spacing(3) (govuk-spacing(2) - 1px) 46px; + padding: govuk-spacing(2) + 1px govuk-spacing(3) (govuk-spacing(2) - 1px) 15px; border: solid 1px transparent; // to show it's area in high contrast mode width: calc(100% + 2px); // grow to overlap wrapper's border (when combined with top and left) box-sizing: border-box; font-weight: bold; - background: $grey-1 file-url('exclamation.svg'); + background: $grey-1; color: $white; - background-size: 22px; - background-repeat: no-repeat; - background-position: govuk-spacing(3) 11px; border-top-right-radius: 5px; border-top-left-radius: 5px; box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.1); + + &__icon { + padding-right: 6px; + // user agents set this to 'none' by default for svgs so set as 'auto' to allow + // colours to be overridden in forced-color modes like Windows high contrast mode + forced-color-adjust: auto; + } } } diff --git a/requirements.in b/requirements.in index 7343ca794..81053f579 100644 --- a/requirements.in +++ b/requirements.in @@ -30,7 +30,7 @@ pyproj==3.2.1 # PaaS awscli-cwlogs>=1.4,<1.5 itsdangerous==1.1.0 # pyup: <2 -notifications-utils @ git+https://github.com/alphagov/notifications-utils.git@49.1.0 +notifications-utils @ git+https://github.com/alphagov/notifications-utils.git@50.0.0 govuk-frontend-jinja @ git+https://github.com/alphagov/govuk-frontend-jinja.git@v0.5.8-alpha # cryptography 3.4+ incorporates Rust code, which isn't supported on PaaS diff --git a/requirements.txt b/requirements.txt index feba75754..94cece298 100644 --- a/requirements.txt +++ b/requirements.txt @@ -123,7 +123,7 @@ mistune==0.8.4 # via notifications-utils notifications-python-client==6.3.0 # via -r requirements.in -notifications-utils @ git+https://github.com/alphagov/notifications-utils.git@49.1.0 +notifications-utils @ git+https://github.com/alphagov/notifications-utils.git@50.0.0 # via -r requirements.in openpyxl==3.0.7 # via pyexcel-xlsx