@nnc-digital/nnc-design-system 0.4.34 → 0.4.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.esm.js
CHANGED
|
@@ -26591,6 +26591,21 @@ const Result = styled.div`
|
|
|
26591
26591
|
&:first-of-type {
|
|
26592
26592
|
margin-top: 0;
|
|
26593
26593
|
}
|
|
26594
|
+
|
|
26595
|
+
&.promoted {
|
|
26596
|
+
position: relative;
|
|
26597
|
+
&::before {
|
|
26598
|
+
content: '';
|
|
26599
|
+
position: absolute;
|
|
26600
|
+
top: -1.25rem;
|
|
26601
|
+
left: -1.25rem;
|
|
26602
|
+
right: 0;
|
|
26603
|
+
bottom: -1.25rem;
|
|
26604
|
+
background-color: bisque;
|
|
26605
|
+
z-index: -1;
|
|
26606
|
+
}
|
|
26607
|
+
}
|
|
26608
|
+
|
|
26594
26609
|
`;
|
|
26595
26610
|
|
|
26596
26611
|
const Title$3 = styled.a`
|
|
@@ -26744,7 +26759,7 @@ var SearchResultsList = function (_a) {
|
|
|
26744
26759
|
" total results for '",
|
|
26745
26760
|
searchTerm,
|
|
26746
26761
|
"'"),
|
|
26747
|
-
results.map(function (result, i) { return (React.createElement(Result, { key: i },
|
|
26762
|
+
results.map(function (result, i) { return (React.createElement(Result, { key: i, className: (result.promoted === true) ? 'promoted' : '' },
|
|
26748
26763
|
result.service && React.createElement(ServiceArea, null, result.service),
|
|
26749
26764
|
React.createElement(Title$3, { href: result.link }, result.title),
|
|
26750
26765
|
React.createElement(Summary$2, null, result.summary),
|