update notice banner copy and styling

This commit is contained in:
2022-10-07 09:43:02 +01:00
parent e50dcb4d62
commit 57a7c8f379
4 changed files with 57 additions and 28 deletions
+7 -3
View File
@@ -32,12 +32,16 @@ export default function NoticeBanner(props) {
<> <>
{bannerOpenCookie ? ( {bannerOpenCookie ? (
<div className="govuk-warning-text noticebanner"> <div className="govuk-warning-text noticebanner">
<span {/* <span
className="govuk-warning-text__icon" className="govuk-warning-text__icon"
aria-hidden="true" aria-hidden="true"
> >
! <Image
</span> src="/assets/images/information.svg"
width="30px"
height="30px"
/>
</span> */}
<strong className="govuk-warning-text__text"> <strong className="govuk-warning-text__text">
<span className="govuk-warning-text__assistive"> <span className="govuk-warning-text__assistive">
Warning Warning
+2 -2
View File
@@ -4,9 +4,9 @@ const ApiResponse = (req, res) => {
"value": [ "value": [
{ {
"notice_en": "notice_en":
"An update has been made to the portal. If you experience problems, try pressing CTRL, Shift and R in your browser (or CMD and R on a Mac), this should force a refresh of your cache.", "We have updated the Planning Casework service. If you are unable to view your recent activity please refresh your browser.",
"notice_cy": "notice_cy":
"Mae diweddariad wedi'i wneud i'r porth. Os ydych chi'n cael problemau, ceisiwch wasgu CTRL, Shift ac R yn eich porwr (neu CMD ac R ar Mac), dylai hyn orfodi adnewyddiad o'ch storfa.", "Rydym wedi diweddaru'r gwasanaeth Gwaith Achos Cynllunio. Os na allwch weld eich gweithgarwch diweddar adnewyddwch eich porwr.",
"dateFrom": "20/09/2022", "dateFrom": "20/09/2022",
"dateTo": "20/09/2023", "dateTo": "20/09/2023",
+1 -1
View File
@@ -169,10 +169,10 @@ const Home = (props) => {
</> </>
) : ( ) : (
<> <>
<ServiceBanner />
{displayNotice && ( {displayNotice && (
<NoticeBanner noticeContent={noticeContent} /> <NoticeBanner noticeContent={noticeContent} />
)} )}
<ServiceBanner />
<Main <Main
ggLocale={ggLocale} ggLocale={ggLocale}
pages={pages} pages={pages}
+47 -22
View File
@@ -80,9 +80,9 @@ body {
.cookies-banner__link, .cookies-banner__link,
.cookies-banner__button { .cookies-banner__button {
display: block; display: block;
color: #0360a6; color: $blue;
background-color: inherit; background-color: inherit;
border: 2px solid #0360a6; border: 2px solid $blue;
padding: 7px 14px; padding: 7px 14px;
margin-top: 10px; margin-top: 10px;
font-size: 14px; font-size: 14px;
@@ -94,7 +94,7 @@ body {
text-align: center; text-align: center;
&:hover { &:hover {
background-color: #0360a6; background-color: $blue;
color: #eeeeee; color: #eeeeee;
} }
} }
@@ -190,7 +190,7 @@ a.longLinkBreak {
.govuk-breadcrumbs__link:link, .govuk-breadcrumbs__link:link,
.govuk-breadcrumbs__link:visited { .govuk-breadcrumbs__link:visited {
color: #0360a6; color: $blue;
font-weight: bold; font-weight: bold;
text-decoration: none; text-decoration: none;
font-size: 16px; font-size: 16px;
@@ -1086,14 +1086,14 @@ textarea,
background: none; background: none;
padding-left: 0; padding-left: 0;
color: #0360a6; color: $blue;
&.sortDesc:after { &.sortDesc:after {
width: 0; width: 0;
height: 0; height: 0;
border-style: solid; border-style: solid;
border-width: 12px 5px 0 5px; border-width: 12px 5px 0 5px;
border-color: #0360a6 transparent transparent transparent; border-color: $blue transparent transparent transparent;
content: ""; content: "";
top: 16px; top: 16px;
position: relative; position: relative;
@@ -1105,7 +1105,7 @@ textarea,
height: 0; height: 0;
border-style: solid; border-style: solid;
border-width: 0 5px 12px 5px; border-width: 0 5px 12px 5px;
border-color: transparent transparent #0360a6 transparent; border-color: transparent transparent $blue transparent;
content: ""; content: "";
top: -16px; top: -16px;
position: relative; position: relative;
@@ -1302,7 +1302,7 @@ ul#sharePageLinks.active {
padding-top: 2px; padding-top: 2px;
padding-left: 25px; padding-left: 25px;
height: 24px; height: 24px;
color: #0360a6; color: $blue;
} }
.block-share ul li a { .block-share ul li a {
@@ -1315,7 +1315,7 @@ ul#sharePageLinks.active {
padding-left: 25px; padding-left: 25px;
height: 24px; height: 24px;
background-color: inherit; background-color: inherit;
color: #0360a6; color: $blue;
font-weight: bold; font-weight: bold;
text-decoration: none; text-decoration: none;
} }
@@ -2256,7 +2256,7 @@ fade {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
font-size: 18px; font-size: 18px;
padding: 25px 30px; padding: 20px 20px 30px 5px;
margin-top: 20px; margin-top: 20px;
@@ -2266,29 +2266,53 @@ fade {
margin-top: 0px; margin-top: 0px;
} }
border-color: $blue; // background-image: url(/assets/images/information.svg);
background-color: $blue; // content: " ";
min-width: 25px; // position: relative;
min-height: 25px; // border: 0px solid red;
font-size: 20px; // background-color: transparent;
line-height: 20px; // background-repeat: no-repeat;
left: 20px; // background-position: center;
// border-color: $blue;
// background-color: $blue;
// min-width: 25px;
// min-height: 25px;
// font-size: 20px;
// line-height: 20px;
// left: 20px;
} }
.govuk-warning-text__text { .govuk-warning-text__text {
padding-left: 35px; padding-left: 20px;
padding-right: 10px; padding-right: 10px;
color: $black; color: $black;
font-weight: normal; font-weight: normal;
font-size: 18px; font-size: 18px;
&:before {
background-image: url(/assets/images/information.svg);
content: " ";
position: relative;
border: 0px solid red;
background-color: transparent;
background-repeat: no-repeat;
background-position: 0, 0;
height: 100%;
width: 30px;
display: block;
float: left;
left: -14px;
}
} }
.hideNotice span { .hideNotice span {
font-size: 14px; font-size: 14px;
color: $black; color: $blue;
font-weight: bold; font-weight: bold;
cursor: pointer; cursor: pointer;
text-decoration: none;
margin-right: 18px;
a { a {
text-decoration: underline; text-decoration: underline;
@@ -2298,14 +2322,15 @@ fade {
} }
&:hover { &:hover {
color: $charcoal color: $lightblue;
} }
&:after { &:after {
content: "\00d7"; content: "\00d7";
font-size: 20px; font-size: 28px;
position: relative; position: relative;
top: 3px; top: 6px;
left: 6px
} }
} }