watch icon showing incorrectly
This commit is contained in:
@@ -61,6 +61,7 @@ const SearchResults = (props) => {
|
|||||||
setWatchedCasesDetails,
|
setWatchedCasesDetails,
|
||||||
isLinkedCase,
|
isLinkedCase,
|
||||||
setCurrentPage,
|
setCurrentPage,
|
||||||
|
showLoginCheck,
|
||||||
} = props;
|
} = props;
|
||||||
let { t } = useTranslation();
|
let { t } = useTranslation();
|
||||||
|
|
||||||
@@ -533,7 +534,7 @@ const SearchResults = (props) => {
|
|||||||
)}
|
)}
|
||||||
</dd>
|
</dd>
|
||||||
)}
|
)}
|
||||||
{!session && (
|
{showLoginCheck == "true" && !session && (
|
||||||
<dd>
|
<dd>
|
||||||
<span
|
<span
|
||||||
className="govuk-summary-list__actionLink watchLink"
|
className="govuk-summary-list__actionLink watchLink"
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ export default function Search(props) {
|
|||||||
myportal,
|
myportal,
|
||||||
watchedCases,
|
watchedCases,
|
||||||
isLinkedCase,
|
isLinkedCase,
|
||||||
|
showLoginCheck,
|
||||||
} = props;
|
} = props;
|
||||||
let { t } = useTranslation();
|
let { t } = useTranslation();
|
||||||
|
|
||||||
@@ -50,6 +51,7 @@ export default function Search(props) {
|
|||||||
myportal={myportal}
|
myportal={myportal}
|
||||||
watchedCases={watchedCases}
|
watchedCases={watchedCases}
|
||||||
isLinkedCase={isLinkedCase}
|
isLinkedCase={isLinkedCase}
|
||||||
|
showLoginCheck
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -106,6 +106,7 @@ const Home = (props) => {
|
|||||||
searchString={props.search.searchString}
|
searchString={props.search.searchString}
|
||||||
searchResultsObj={props.searchResultsObj}
|
searchResultsObj={props.searchResultsObj}
|
||||||
isLinkedCase={isLinkedCase}
|
isLinkedCase={isLinkedCase}
|
||||||
|
showLoginCheck
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Footer footerLinks={footerLinks} />
|
<Footer footerLinks={footerLinks} />
|
||||||
@@ -125,6 +126,7 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
|||||||
: false;
|
: false;
|
||||||
|
|
||||||
//console.log("is linked:", isLinked);
|
//console.log("is linked:", isLinked);
|
||||||
|
const showLoginCheck = process.env.SHOWLOGIN || false;
|
||||||
|
|
||||||
let searchResultsObj = await getBasicSearch(query.q);
|
let searchResultsObj = await getBasicSearch(query.q);
|
||||||
|
|
||||||
@@ -156,7 +158,10 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
|||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
props: { isLinkedCase: isLinked },
|
props: {
|
||||||
|
isLinkedCase: isLinked,
|
||||||
|
showLoginCheck: showLoginCheck,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -80,9 +80,9 @@ body {
|
|||||||
.cookies-banner__link,
|
.cookies-banner__link,
|
||||||
.cookies-banner__button {
|
.cookies-banner__button {
|
||||||
display: block;
|
display: block;
|
||||||
color: $blue;
|
color: #0360a6;
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
border: 2px solid $blue;
|
border: 2px solid #0360a6;
|
||||||
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: $blue;
|
background-color: #0360a6;
|
||||||
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: $blue;
|
color: #0360a6;
|
||||||
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: $blue;
|
color: #0360a6;
|
||||||
|
|
||||||
&.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: $blue transparent transparent transparent;
|
border-color: #0360a6 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 $blue transparent;
|
border-color: transparent transparent #0360a6 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: $blue;
|
color: #0360a6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.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: $blue;
|
color: #0360a6;
|
||||||
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: 20px 20px 30px 5px;
|
padding: 25px 30px;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
|
|
||||||
|
|
||||||
@@ -2266,53 +2266,29 @@ fade {
|
|||||||
margin-top: 0px;
|
margin-top: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
// background-image: url(/assets/images/information.svg);
|
border-color: $blue;
|
||||||
// content: " ";
|
background-color: $blue;
|
||||||
// position: relative;
|
min-width: 25px;
|
||||||
// border: 0px solid red;
|
min-height: 25px;
|
||||||
// background-color: transparent;
|
font-size: 20px;
|
||||||
// background-repeat: no-repeat;
|
line-height: 20px;
|
||||||
// background-position: center;
|
left: 20px;
|
||||||
// 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: 20px;
|
padding-left: 35px;
|
||||||
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: $blue;
|
color: $black;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-decoration: none;
|
|
||||||
margin-right: 18px;
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
@@ -2322,15 +2298,14 @@ fade {
|
|||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: $lightblue;
|
color: $charcoal
|
||||||
}
|
}
|
||||||
|
|
||||||
&:after {
|
&:after {
|
||||||
content: "\00d7";
|
content: "\00d7";
|
||||||
font-size: 28px;
|
font-size: 20px;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 6px;
|
top: 3px;
|
||||||
left: 6px
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user