Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 20241217 #50

Merged
merged 99 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
51f2e7e
Merge pull request #1290 from hlxsites/main
davenichols-DHLS Nov 4, 2024
2e2764c
wsaw ui css changes
lakshmithi Nov 5, 2024
fed4d00
fix for lint issues
lakshmithi Nov 6, 2024
93df1f6
css fix - removed "!text-base" from the class
lakshmithi Nov 6, 2024
8905898
css changes for column width and left side column fonts(col-left h2 s…
lakshmithi Nov 7, 2024
a89cb40
css fix for strong tag font-weight property changed from 200 to 500
lakshmithi Nov 8, 2024
4763386
fix for console error when quote cart is empty[#1294]
lakshmithi Nov 12, 2024
ddc0464
updated for 2 col width layout
lakshmithi Nov 14, 2024
c127802
Merge pull request #1297 from hlxsites/js-issue-fix
davenichols-DHLS Nov 14, 2024
0841b63
Upated the converter for column
rgravitvl Nov 15, 2024
9985a91
Merge pull request #1300 from hlxsites/1299-wsaw-2-column
rgravitvl Nov 15, 2024
6e0722d
column style fix
lakshmithi Nov 21, 2024
d11b715
Updated for we see a way
rgravitvl Nov 21, 2024
d40f4bb
Updated miniteaser
rgravitvl Nov 21, 2024
8928167
fixed lint issues
rgravitvl Nov 21, 2024
d11e376
Merge pull request #1303 from hlxsites/fix-mini-teaser-section
rgravitvl Nov 21, 2024
f09d0fd
updated column style
rgravitvl Nov 21, 2024
092b639
updted colum styles
rgravitvl Nov 21, 2024
35f96e9
Added the evergage script to run in scripts and not deferred
davenichols-DHLS Nov 21, 2024
389cbf9
Merge pull request #1296 from hlxsites/1266-salesforce-beacon
davenichols-DHLS Nov 21, 2024
baf9b6f
Merge pull request #1292 from hlxsites/ui-chgs-wsaw
rgravitvl Nov 25, 2024
bd0a86c
Merge branch 'main' into 1248-wsaw
rgravitvl Nov 25, 2024
fd076c7
Merge pull request #1291 from hlxsites/1248-wsaw
rgravitvl Nov 25, 2024
663a126
fix for image bigger issue in columns-img-col class
lakshmithi Nov 26, 2024
762e86c
Merge remote-tracking branch 'origin/main' into 1299-wsaw-2-column
rgravitvl Nov 26, 2024
262acd8
Fixed lint issues
rgravitvl Nov 26, 2024
fd4bbbc
Merge pull request #1308 from hlxsites/1299-wsaw-2-column
rgravitvl Nov 26, 2024
86a92da
Updated script converter
rgravitvl Nov 26, 2024
2205655
Merge pull request #1312 from hlxsites/fix-script-section
rgravitvl Nov 26, 2024
af93c46
fix for overview tab hide in products page if no response from api
lakshmithi Nov 26, 2024
227caa5
lint issue fixed
lakshmithi Nov 26, 2024
373fd2a
validated for both api & content authoring for overview tab
lakshmithi Nov 27, 2024
4b769f1
lint issues fixed
lakshmithi Nov 27, 2024
a9fda71
fix for blue arrow removal in details page
lakshmithi Nov 28, 2024
2158704
fix for overview tab hide-validated with prod and col containers
lakshmithi Nov 28, 2024
5f3b5b2
fix for 1310 title issue and product overview tab issue
lakshmithi Dec 2, 2024
d533dbe
Added empty block for product not found
rgravitvl Dec 3, 2024
51484cb
Merge pull request #1314 from hlxsites/fix-title-no-product
rgravitvl Dec 3, 2024
89bdd94
1311-products-title-metadata-fix
Raja-danaher Dec 3, 2024
10183e0
Update product-hero.js
Raja-danaher Dec 3, 2024
8e81273
Code update.
Raja-danaher Dec 3, 2024
0d4f2eb
Merge pull request #1315 from hlxsites/1311-products-title-metadata-fix
davenichols-DHLS Dec 4, 2024
7533503
reverted the code fix in converter file productHero
lakshmithi Dec 5, 2024
c0f9817
lint issues and console cleanup fix
lakshmithi Dec 6, 2024
e4175d0
Created for spline-fragment
rgravitvl Dec 6, 2024
e9ca168
Fixed lint issues
rgravitvl Dec 6, 2024
f95eae0
Merge pull request #1317 from hlxsites/1316-spline-fragment
davenichols-DHLS Dec 6, 2024
cf6deea
Fixed spline viewer issue
rgravitvl Dec 6, 2024
3cf2c93
Fixed padding
rgravitvl Dec 6, 2024
15d6837
Upated the script
rgravitvl Dec 9, 2024
f1f0903
added the observers
rgravitvl Dec 9, 2024
87e7d32
fixed lint issues
rgravitvl Dec 9, 2024
d2d55ba
Updated heights
rgravitvl Dec 9, 2024
223fc53
wsaw feedback fix for Home and details page
lakshmithi Dec 9, 2024
77ba198
lint issue fixed. removed #total-assay-time--15-minutes(id) due to li…
lakshmithi Dec 9, 2024
1ab5eb3
Merge branch 'main' into wsaw-fdbk-fix
rgravitvl Dec 9, 2024
7ae7ed0
Updated the styles
rgravitvl Dec 9, 2024
c24eb89
Merge pull request #1319 from hlxsites/wsaw-fdbk-fix
davenichols-DHLS Dec 9, 2024
b52b98b
Fixed lint issues
rgravitvl Dec 9, 2024
5a496e2
Merge pull request #1318 from hlxsites/fix-spline-viewer
davenichols-DHLS Dec 9, 2024
1fb9491
Added solution metadata
rgravitvl Dec 9, 2024
66fd779
Merge pull request #1320 from hlxsites/add-solution-meta
rgravitvl Dec 9, 2024
02a7a01
removed console stmt and test message in productherojs
lakshmithi Dec 10, 2024
ff49747
Merge pull request #1321 from hlxsites/prod-price
Raja-danaher Dec 10, 2024
4f849b3
Updated for wsaw hub page
rgravitvl Dec 11, 2024
04b8f2d
Fixed lint issues
rgravitvl Dec 11, 2024
a893675
Merge pull request #1322 from hlxsites/wsaw-hub
rgravitvl Dec 11, 2024
c23b15e
Updated the content type
rgravitvl Dec 11, 2024
152e0a5
Merge pull request #1323 from hlxsites/fix-weseeaway-hub
rgravitvl Dec 11, 2024
c775486
Minor update for wsaw
rgravitvl Dec 11, 2024
afabab3
Merge pull request #1324 from hlxsites/minor-fix-wsaw
rgravitvl Dec 11, 2024
da23259
Updated wsaw
rgravitvl Dec 11, 2024
2070bd9
Merge branch 'main' into minor-fix-wsaw
rgravitvl Dec 11, 2024
a3452c5
Merge pull request #1325 from hlxsites/minor-fix-wsaw
rgravitvl Dec 11, 2024
9b5441f
Fixing quote cart issue wit the token storage change - affected by ht…
deepakk799 Dec 11, 2024
0883269
code update 1311.
Raja-danaher Dec 12, 2024
a1f1be2
code update
Raja-danaher Dec 12, 2024
2aa5b23
code update.
Raja-danaher Dec 12, 2024
f408755
code update
Raja-danaher Dec 12, 2024
058d80a
code update
Raja-danaher Dec 12, 2024
0997f09
Merge pull request #1327 from hlxsites/TokenFixForISHSession
davenichols-DHLS Dec 12, 2024
0deef94
Merge pull request #1328 from hlxsites/1311-products-title-metadata-fix
davenichols-DHLS Dec 13, 2024
708350f
wsaw Dave's feedback changes(#1 and #2)
lakshmithi Dec 16, 2024
3048146
Merge branch 'main' into wsaw-updts-latst
rgravitvl Dec 16, 2024
7605551
added wsaw
rgravitvl Dec 16, 2024
39151f6
Merge pull request #1329 from hlxsites/wsaw-updts-latst
davenichols-DHLS Dec 16, 2024
472a551
Updated converter and index
rgravitvl Dec 16, 2024
731b38d
Updated test
rgravitvl Dec 16, 2024
b9816c6
Merge pull request #1330 from hlxsites/wsaw-updts-latst
davenichols-DHLS Dec 16, 2024
0139898
Updated converter
rgravitvl Dec 16, 2024
4c7c8f2
Merge pull request #1331 from hlxsites/fix-wsaw-cards
davenichols-DHLS Dec 16, 2024
b8301df
Added some code, so that if the overview doesn't exist then open spec…
davenichols-DHLS Dec 16, 2024
97cd8fa
Revert "Fixing quote cart issue wit the token storage change - affect…
deepakk799 Dec 16, 2024
b92f23c
Merge branch 'main' into fix-overviewtab-hide
rgravitvl Dec 17, 2024
9aaf8bd
fixed lint issues
rgravitvl Dec 17, 2024
f5617fa
Merge pull request #1332 from hlxsites/TokenFixForISHSession
davenichols-DHLS Dec 17, 2024
926283b
Merge pull request #1313 from hlxsites/fix-overviewtab-hide
davenichols-DHLS Dec 17, 2024
f8b3efa
Merge branch 'main' into main
davenichols-DHLS Dec 17, 2024
7c40754
Revert "Merge branch 'main' into main"
rgravitvl Dec 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/deploy-converter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- run: npm ci
- run: npm run converter:test
- run: npm run converter:build:prod
- run: npm run converter:deploy -- convert/${ACTION_NAME}
env:
Expand Down
5 changes: 5 additions & 0 deletions blocks/accordion/accordion.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@
background-color: rgb(239 251 253 / var(--tw-bg-opacity))
}

.accordion-wrapper :is(.bg-danaherpurple-800) {
--tw-bg-opacity: 1;
background-color: rgb(64 0 165 / var(--tw-bg-opacity))
}

.accordion-wrapper :is(.fill-current) {
fill: currentColor
}
Expand Down
5 changes: 5 additions & 0 deletions blocks/article-info/article-info.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@
background-color: rgb(239 251 253 / var(--tw-bg-opacity))
}

.article-info-wrapper :is(.bg-danaherpurple-800) {
--tw-bg-opacity: 1;
background-color: rgb(64 0 165 / var(--tw-bg-opacity))
}

.article-info-wrapper :is(.pl-1) {
padding-left: 0.25rem
}
Expand Down
5 changes: 5 additions & 0 deletions blocks/articles-list/articles-list.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@
background-color: rgb(239 251 253 / var(--tw-bg-opacity))
}

.articles-list-wrapper :is(.bg-danaherpurple-800) {
--tw-bg-opacity: 1;
background-color: rgb(64 0 165 / var(--tw-bg-opacity))
}

.articles-list-wrapper :is(.bg-white) {
--tw-bg-opacity: 1;
background-color: rgb(255 255 255 / var(--tw-bg-opacity))
Expand Down
5 changes: 5 additions & 0 deletions blocks/banner/banner.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
background-color: rgb(239 251 253 / var(--tw-bg-opacity))
}

.banner :is(.bg-danaherpurple-800) {
--tw-bg-opacity: 1;
background-color: rgb(64 0 165 / var(--tw-bg-opacity))
}

.banner :is(.p-4) {
padding: 1rem
}
Expand Down
5 changes: 5 additions & 0 deletions blocks/blog-hero/blog-hero.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
background-color: rgb(239 251 253 / var(--tw-bg-opacity))
}

.blog-hero-wrapper :is(.bg-danaherpurple-800) {
--tw-bg-opacity: 1;
background-color: rgb(64 0 165 / var(--tw-bg-opacity))
}

.blog-hero-wrapper :is(.px-2) {
padding-left: 0.5rem;
padding-right: 0.5rem
Expand Down
5 changes: 5 additions & 0 deletions blocks/breadcrumb/breadcrumb.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@
background-color: rgb(239 251 253 / var(--tw-bg-opacity))
}

.breadcrumb-wrapper :is(.bg-danaherpurple-800) {
--tw-bg-opacity: 1;
background-color: rgb(64 0 165 / var(--tw-bg-opacity))
}

.breadcrumb-wrapper :is(.bg-white) {
--tw-bg-opacity: 1;
background-color: rgb(255 255 255 / var(--tw-bg-opacity))
Expand Down
24 changes: 15 additions & 9 deletions blocks/card-list/articleCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import { formatDateUTCSeconds, imageHelper, makePublicUrl } from '../../scripts/
import {
li, a, p, div, time, span, h3,
} from '../../scripts/dom-builder.js';
import { getMetadata } from '../../scripts/lib-franklin.js';

const template = getMetadata('template');
const linkText = template === 'wsaw' ? 'Learn More →' : 'Read Article →';

export default function createCard(article, firstCard = false) {
const cardTitle = article.title.indexOf('| Danaher Life Sciences') > -1
Expand All @@ -17,14 +21,7 @@ export default function createCard(article, firstCard = false) {
{ class: 'eyebrow-sm' },
article.brand || 'Danaher Corporation',
),
p(
{ class: 'text-base text-gray-500 font-extralight' },
time(
{ datetime: formatDateUTCSeconds(article.publishDate) },
formatDateUTCSeconds(article.publishDate, { month: 'long' }),
),
span({ class: 'pl-2' }, `${article.readingTime} min read`),
),

h3(
{
class:
Expand All @@ -37,10 +34,19 @@ export default function createCard(article, firstCard = false) {
class:
'mt-auto inline-flex w-full py-5 text-base text-danaherpurple-500 font-semibold',
},
'Read Article →',
linkText,
),
),
);
const showDateTime = p(
{ class: 'text-base text-gray-500 font-extralight' },
time(
{ datetime: formatDateUTCSeconds(article.publishDate) },
formatDateUTCSeconds(article.publishDate, { month: 'long' }),
),
span({ class: 'pl-2' }, `${article.readingTime} min read`),
);
if (template !== 'wsaw') cardWrapper.querySelector('.eyebrow-sm')?.after(showDateTime);

return li(
{
Expand Down
5 changes: 5 additions & 0 deletions blocks/card-list/card-list.css
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,11 @@
background-color: rgb(117 35 255 / var(--tw-bg-opacity))
}

.card-list-wrapper :is(.bg-danaherpurple-800) {
--tw-bg-opacity: 1;
background-color: rgb(64 0 165 / var(--tw-bg-opacity))
}

.card-list-wrapper :is(.bg-white) {
--tw-bg-opacity: 1;
background-color: rgb(255 255 255 / var(--tw-bg-opacity))
Expand Down
23 changes: 13 additions & 10 deletions blocks/card-list/card-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,23 @@ import ffetch from '../../scripts/ffetch.js';
import {
ul, a, div, span,
} from '../../scripts/dom-builder.js';

import { getMetadata, toClassName } from '../../scripts/lib-franklin.js';
import createArticleCard from './articleCard.js';
import createLibraryCard from './libraryCard.js';
import createApplicationCard from './applicationCard.js';
import { makePublicUrl } from '../../scripts/scripts.js';
import { buildItemListSchema } from '../../scripts/schema.js';

const getSelectionFromUrl = () => (window.location.pathname.indexOf('topics') > -1 ? toClassName(window.location.pathname.replace('.html', '').split('/').pop()) : '');
const tagName = getMetadata('template') === 'wsaw' ? 'solutions' : 'topics';

const getSelectionFromUrl = () => (window.location.pathname.indexOf(tagName) > -1 ? toClassName(window.location.pathname.replace('.html', '').split('/').pop()) : '');
const getPageFromUrl = () => toClassName(new URLSearchParams(window.location.search).get('page')) || '';

const createTopicUrl = (currentUrl, keyword = '') => {
if (currentUrl.indexOf('topics') > -1) {
if (currentUrl.indexOf(tagName) > -1) {
return currentUrl.substring(0, currentUrl.lastIndexOf('/') + 1) + toClassName(keyword).toLowerCase();
}
return `${currentUrl.replace('.html', '')}/topics/${toClassName(keyword).toLowerCase()}`;
return `${currentUrl.replace('.html', '')}/${tagName}/${toClassName(keyword).toLowerCase()}`;
};

const patchBannerHeading = () => {
Expand Down Expand Up @@ -83,7 +84,7 @@ const createPagination = (entries, page, limit) => {

export function createFilters(articles, viewAll = false) {
// collect tag filters
const allKeywords = articles.map((item) => item.topics.replace(/,\s*/g, ',').split(','));
const allKeywords = articles.map((item) => item[tagName].replace(/,\s*/g, ',').split(','));
const keywords = new Set([].concat(...allKeywords));
keywords.delete('');
keywords.delete('Blog'); // filter out generic blog tag
Expand All @@ -92,8 +93,8 @@ export function createFilters(articles, viewAll = false) {
// render tag cloud
const newUrl = new URL(window.location);
newUrl.searchParams.delete('page');
if (window.location.pathname.indexOf('topics') > -1) {
newUrl.pathname = window.location.pathname.substring(0, window.location.pathname.indexOf('/topics/'));
if (window.location.pathname.indexOf(tagName) > -1) {
newUrl.pathname = window.location.pathname.substring(0, window.location.pathname.indexOf(`/${tagName}/`));
}
const tags = viewAll ? div(
{ class: 'flex flex-wrap gap-2 gap-y-0 mb-4' },
Expand Down Expand Up @@ -138,20 +139,22 @@ export function createFilters(articles, viewAll = false) {
});

// patch banner heading with selected tag only on topics pages
if (getMetadata('heading') && window.location.pathname.indexOf('topics') > -1) {
if (getMetadata('heading') && window.location.pathname.indexOf(tagName) > -1) {
patchBannerHeading();
}

return tags;
}

export default async function decorate(block) {
block.setAttribute('id', 'card-list');
const articleType = block.classList.length > 2 ? block.classList[1] : '';
if (articleType) block.classList.remove(articleType);
block.textContent = '';
const indexType = getMetadata('template') === 'wsaw' ? 'wsaw' : 'article';

// fetch and sort all articles
const articles = await ffetch('/us/en/article-index.json')
const articles = await ffetch(`/us/en/${indexType}-index.json`)
.chunks(500)
.filter(({ type }) => type.toLowerCase() === articleType)
.filter((article) => !article.path.includes('/topics-template'))
Expand All @@ -160,7 +163,7 @@ export default async function decorate(block) {
const activeTagFilter = block.classList.contains('url-filtered') ? getSelectionFromUrl() : '';
if (activeTagFilter) {
filteredArticles = articles.filter(
(item) => toClassName(item.topics).toLowerCase().indexOf(activeTagFilter) > -1,
(item) => toClassName(item[tagName]).toLowerCase().indexOf(activeTagFilter) > -1,
);
}
buildItemListSchema(filteredArticles, 'resources');
Expand Down
5 changes: 5 additions & 0 deletions blocks/cards/cards.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@
background-color: rgb(239 251 253 / var(--tw-bg-opacity))
}

.cards-wrapper :is(.bg-danaherpurple-800) {
--tw-bg-opacity: 1;
background-color: rgb(64 0 165 / var(--tw-bg-opacity))
}

.cards-wrapper :is(.bg-white) {
--tw-bg-opacity: 1;
background-color: rgb(255 255 255 / var(--tw-bg-opacity))
Expand Down
5 changes: 5 additions & 0 deletions blocks/carousel/carousel.css
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,11 @@
background-color: rgb(234 222 255 / var(--tw-bg-opacity));
}

.carousel-wrapper :is(.bg-danaherpurple-800) {
--tw-bg-opacity: 1;
background-color: rgb(64 0 165 / var(--tw-bg-opacity));
}

.carousel-wrapper :is(.bg-white) {
--tw-bg-opacity: 1;
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
Expand Down
25 changes: 23 additions & 2 deletions blocks/columns/columns.css
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
height: 100%;
}

.columns-wrapper :is(.\!w-1\/2) {
width: 50% !important;
}

.columns-wrapper :is(.w-12) {
width: 3rem;
}
Expand Down Expand Up @@ -164,6 +168,10 @@
grid-template-columns: repeat(1, minmax(0, 1fr));
}

.columns-wrapper :is(.flex-col) {
flex-direction: column;
}

.columns-wrapper :is(.flex-col-reverse) {
flex-direction: column-reverse;
}
Expand Down Expand Up @@ -244,6 +252,11 @@
background-color: rgb(239 251 253 / var(--tw-bg-opacity));
}

.columns-wrapper :is(.bg-danaherpurple-800) {
--tw-bg-opacity: 1;
background-color: rgb(64 0 165 / var(--tw-bg-opacity));
}

.columns-wrapper :is(.bg-danaherred-800) {
--tw-bg-opacity: 1;
background-color: rgb(122 25 127 / var(--tw-bg-opacity));
Expand Down Expand Up @@ -461,14 +474,22 @@
width: 50%;
}

.columns-wrapper :is(.lg\:grid-cols-2) {
grid-template-columns: repeat(2, minmax(0, 1fr));
.columns-wrapper :is(.lg\:w-1\/3) {
width: 33.333333%;
}

.columns-wrapper :is(.lg\:w-2\/3) {
width: 66.666667%;
}

.columns-wrapper :is(.lg\:grid-cols-3) {
grid-template-columns: repeat(3, minmax(0, 1fr));
}

.columns-wrapper :is(.lg\:flex-row) {
flex-direction: row;
}

.columns-wrapper :is(.lg\:flex-col-reverse) {
flex-direction: column-reverse;
}
Expand Down
31 changes: 27 additions & 4 deletions blocks/columns/columns.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
} from '../../scripts/dom-builder.js';

export default function decorate(block) {
const sectionDiv = block.closest('.section');
const cols = [...block.firstElementChild.children];
block.classList.add(`columns-${cols.length}-cols`);
const imageAspectRatio = 1.7778;
Expand All @@ -12,11 +13,25 @@ export default function decorate(block) {
ele.classList.add(...'align-text-center w-full h-full'.split(' '));
} else {
ele.classList.add(...'align-text-top pb-7 py-0 my-0'.split(' '));
const firstDiv = ele.querySelector('div:nth-child(1)');
const secondDiv = ele.querySelector('div:nth-child(2)');
if (sectionDiv.className.includes('thirtyseventy')) {
firstDiv.classList.add('lg:w-1/3');
secondDiv.classList.add('lg:w-2/3');
} else if (sectionDiv.className.includes('seventythirty')) {
firstDiv.classList.add('lg:w-2/3');
secondDiv.classList.add('lg:w-1/3');
} else {
firstDiv.classList.add('lg:w-1/2');
secondDiv.classList.add('lg:w-1/2');
}
}
}
});
block.querySelectorAll('h2').forEach((ele) => {
ele.classList.add(...'my-0 lg:my-4 font-medium text-4xl2 inline-flex leading-10 text-danahergray-900'.split(' '));
ele.classList.add(...'my-0 lg:my-4 font-medium text-4xl2 inline-flex leading-10'.split(' '));
if (sectionDiv.className.includes('text-white')) ele.classList.add('text-white');
else ele.classList.add('text-danahergray-900');
});
block.querySelectorAll('.button-container > a').forEach((ele) => {
ele.classList.add(...'bg-transparent no-underline text-lg px-5 py-3 text-danaherpurple-500 border border-danaherpurple-500 leading-5 rounded-full font-medium mt-6 ease-in-out duration-150 transition-all hover:bg-danaherpurple-500 hover:text-white'.split(' '));
Expand Down Expand Up @@ -99,7 +114,7 @@ export default function decorate(block) {
if (window.location.pathname.includes('/us/en/blog/') || window.location.pathname.includes('/us/en/news/')) {
block.firstElementChild?.classList.add(...'container max-w-7xl mx-auto flex flex-col-reverse gap-x-12 lg:flex-col-reverse justify-items-center'.split(' '));
} else {
block.firstElementChild?.classList.add(...'container max-w-7xl mx-auto grid grid-cols-1 gap-x-12 gap-y-4 lg:grid-cols-2 justify-items-center'.split(' '));
block.firstElementChild?.classList.add(...'container max-w-7xl mx-auto flex flex-col gap-x-12 gap-y-4 lg:flex-row justify-items-center'.split(' '));
}
const pTags = row.querySelectorAll('p');
pTags.forEach((element) => {
Expand All @@ -119,7 +134,9 @@ export default function decorate(block) {
if (item.title === 'link') {
item.parentElement.classList.add('link', 'pb-8');
item.textContent += ' ->';
item.classList.add(...'text-sm font-bold text-danaherpurple-500'.split(' '));
item.classList.add(...'text-sm font-bold'.split(' '));
if (sectionDiv.className.includes('text-white')) item.classList.add('text-white');
else item.classList.add('text-danaherpurple-500');
}
});
}
Expand All @@ -134,7 +151,13 @@ export default function decorate(block) {
pic.querySelector('img').classList.add(...'absolute bottom-0 h-full w-full object-cover'.split(' '));
} else {
picWrapper.classList.add('columns-img-col', 'order-none');
pic.querySelector('img').classList.add('block');
const seventythirtyEl = picWrapper.parentElement
?.parentElement?.parentElement?.parentElement;
if (seventythirtyEl.querySelector('img')) {
pic.querySelector('img').classList.add('block', '!w-1/2');
} else {
pic.querySelector('img').classList.add('block');
}
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions blocks/download/download.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@
background-color: rgb(239 251 253 / var(--tw-bg-opacity))
}

.download-wrapper :is(.bg-danaherpurple-800) {
--tw-bg-opacity: 1;
background-color: rgb(64 0 165 / var(--tw-bg-opacity))
}

.download-wrapper :is(.object-cover) {
-o-object-fit: cover;
object-fit: cover
Expand Down
5 changes: 5 additions & 0 deletions blocks/embed/embed.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
background-color: rgb(239 251 253 / var(--tw-bg-opacity))
}

.embed-wrapper :is(.bg-danaherpurple-800) {
--tw-bg-opacity: 1;
background-color: rgb(64 0 165 / var(--tw-bg-opacity))
}

.embed-wrapper :is(.text-center) {
text-align: center
}
Expand Down
Loading
Loading