Skip to content

Commit

Permalink
[Release] Stage to Main (adobecom#3181)
Browse files Browse the repository at this point in the history
* [MWPW-160011] - GNAV light mode color changes (adobecom#3019)

* Color changes

* Promo background color fix

* Add text and subtext font color changes in megamenu

* cross cloud menu background color changes

* Fix reveiew comments

* colors hexcode formatted as lowercase for css variables

* Bug fix MWPW-161889

* MWPW-161590, 161606, 161871, 161987 [MEP] Update placeholders before updating href (adobecom#3142)

* MWPW-161590 [MEP] Update placeholders before updating href

* unit test updates

* MWPW-161871 [MEP] useblockcode action fails if page is on milo site (adobecom#3161)

* stash

* ready to publish

* interact call coming back but timing out

* working on a fast connection

* clean up ifs

* working with promise

* use camel case on let variable

* unit tests

* update unit tests

* MWPW-149504 [MILO][MEP] Move entitlements object to the same JSON file used by the library (adobecom#3047)

* create mepxlg branch

* update library

* require full hostname match

* update reference for unit test

* switch to use config instead of domain list and stub response in unit test

* update fetch to 2

* updating another fetch to 2

* restore normalizePath to use preview domains on preview links

* preload segment list json

* use getFederatedUrl instead

* import at top so we don't have to make normalizePath async

* MWPW-148129 [MILO][MEP][GNAV] Able to use select by url feature with federated link (adobecom#3064)

* add federated link function to registerInBlockActions

* add to unit test

* add unit test coverage

* initial commit

* Fix useblock code issue

---------

Co-authored-by: vgoodric <[email protected]>
Co-authored-by: Vivian A Goodrich <[email protected]>

* MWPW-161606 [MEP] Modify within modals with MEP (adobecom#3171)

initial commit publish

Co-authored-by: viloria <[email protected]>

* add conditionals

---------

Co-authored-by: Mark Perry <[email protected]>
Co-authored-by: viloria <[email protected]>

* [MWPW-161782] - Added logo changes for older GNAV experience (adobecom#3162)

* Added logo changes for older GNAV experience

* Lint Fix

* Logo alighned to left for older GNAV

* [MWPW-161563] CDT Overlap in Global and APAC Promotion file (adobecom#3168)

* Use schedule as source for CDT

* seperate start and end

* Added unit tests

* [MWPW-157451] [Accessibility] Merch cards | Focus is lost on comparing plans section (adobecom#3103)

* remive tabindex=0 as the attributes from merchcard div

* fresh commit with same changes as commit 1 after resolving the merge conflict

* Redesign mini-compare chart. Added checkmarks for icons. Backward compatibility using "checkmark" class. Horizontal line added.

* Revert "Redesign mini-compare chart. Added checkmarks for icons. Backward compatibility using "checkmark" class. Horizontal line added."

This reverts commit 610807a.

* run build in mas

* run build

---------

Co-authored-by: Rohit Sahu <[email protected]>

* MWPW-159381: Replaces CSS 'body *' with '.consonant-Wrapper *' (adobecom#3152)

* Revert "MWPW-156749: Fix video CLS " (adobecom#2899) (adobecom#2900)

Revert "MWPW-156749: Fix video CLS  (adobecom#2849)"

This reverts commit d4134c8.

* [MWPW-159903] Fix quiz video marquees (adobecom#3009) (adobecom#3013)

fix quiz marquees

* [MWPW-159328] handle a case where there are not placeholders availabl… (adobecom#3014)

[MWPW-159328] handle a case where there are not placeholders available (adobecom#2998)

* [MWPW-159328] handle a case where there are not palceholders availble

* fixed typos

---------

Co-authored-by: Denys Fedotov <[email protected]>
Co-authored-by: Denys Fedotov <[email protected]>

* MWPW-146211 [MILO][MEP] Option to select all elements (adobecom#2976) (adobecom#3023)

* stash

* stash

* stash

* working well

* set updated command list for inline

* remove querySelector function

* unit test and custom block fix

* updates for in-block

* merch-card-collection unit test fixed

* unit test updates

* more unit test repair

* linting errors

* more linting

* Fix Invalid selector test

* add coverage

* force git checks to refire

* remove comment

* pass rootEl to getSelectedElements for use when needed (gnav)

* skip if clause in codecov

---------

Co-authored-by: Vivian A Goodrich <[email protected]>
Co-authored-by: markpadbe <[email protected]>

* MWPW-158455: Promobar overlays with localnav elements in devices (adobecom#2991)

* Revert "MWPW-156749: Fix video CLS " (adobecom#2899) (adobecom#2900)

Revert "MWPW-156749: Fix video CLS  (adobecom#2849)"

This reverts commit d4134c8.

* Changing z-index of promobar and popup

* Changing z-index of promobar and popup

* Reverting z-index to 4 for promobar

---------

Co-authored-by: milo-pr-merge[bot] <169241390+milo-pr-merge[bot]@users.noreply.github.com>
Co-authored-by: Okan Sahin <[email protected]>
Co-authored-by: Blaine Gunn <[email protected]>
Co-authored-by: Akansha Arora <>

* Replaces CSS 'body *' with '.consonant-Wrapper *'

---------

Co-authored-by: milo-pr-merge[bot] <169241390+milo-pr-merge[bot]@users.noreply.github.com>
Co-authored-by: Okan Sahin <[email protected]>
Co-authored-by: Blaine Gunn <[email protected]>
Co-authored-by: Denys Fedotov <[email protected]>
Co-authored-by: Denys Fedotov <[email protected]>
Co-authored-by: Rares Munteanu <[email protected]>
Co-authored-by: Vivian A Goodrich <[email protected]>
Co-authored-by: markpadbe <[email protected]>
Co-authored-by: Akansha Arora <[email protected]>

* [MWPW-160948] Remove blockquote default spacing (adobecom#3159)

* [MWPW-161098] Environment-aware links support for CaaS (adobecom#3165)

* relative urls caas support

* added unit tests

* [MWPW-162059] - Fix for vertical alignment of logo on AH (adobecom#3180)

Fix for verticle alignment of logo

* Global links underlined by default (adobecom#3166)

* a links underline, a.quite added

* added styles to omit header/footer

* added default link styles for headlines and lockup area

* minor :hover style alignment on cards-horiz, marquee-anchors, brick

* removed dubs underline on links

* removed styles overrides to support double in horiz-card, marquee-anch, brick

* [MWPW-145672] Remove Gnav global link styles

* [MWPW-161624] Link farm double underline on focus

* Ensure sub text in anchors is underlined correctly

* Ensure sub text in anchors is underlined correctly

---------

Co-authored-by: thi64146 <[email protected]>

* Revert "MWPW-140452 - Icon authoring in milo using the federal repo and individual SVG assets (adobecom#3183)

Revert "MWPW-140452 - Icon authoring in milo using the federal repo and individual SVG assets (adobecom#2986)"

This reverts commit f379815.

Co-authored-by: Rares Munteanu <[email protected]>

* [MWPW-145672] Change link color only on hover (adobecom#3186)

---------

Co-authored-by: Dev Ashish Saradhana <[email protected]>
Co-authored-by: Vivian A Goodrich <[email protected]>
Co-authored-by: Mark Perry <[email protected]>
Co-authored-by: viloria <[email protected]>
Co-authored-by: Rahul Gupta <[email protected]>
Co-authored-by: rohitsahu <[email protected]>
Co-authored-by: Rohit Sahu <[email protected]>
Co-authored-by: cmiqueo <[email protected]>
Co-authored-by: milo-pr-merge[bot] <169241390+milo-pr-merge[bot]@users.noreply.github.com>
Co-authored-by: Okan Sahin <[email protected]>
Co-authored-by: Blaine Gunn <[email protected]>
Co-authored-by: Denys Fedotov <[email protected]>
Co-authored-by: Denys Fedotov <[email protected]>
Co-authored-by: Rares Munteanu <[email protected]>
Co-authored-by: markpadbe <[email protected]>
Co-authored-by: Akansha Arora <[email protected]>
Co-authored-by: Robert Bogos <[email protected]>
Co-authored-by: thi64146 <[email protected]>
Co-authored-by: Narcis Radu <[email protected]>
  • Loading branch information
19 people authored Nov 13, 2024
1 parent b28af5f commit eb83ef4
Show file tree
Hide file tree
Showing 32 changed files with 259 additions and 117 deletions.
18 changes: 17 additions & 1 deletion libs/blocks/caas/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,22 @@ const getCardsString = async (cards = []) => {
return uuids.filter(Boolean).join('%2C');
};

export const stageMapToCaasTransforms = (config) => {
if (config.env?.name === 'prod' || !config.stageDomainsMap) return {};
const { href, hostname } = window.location;
const matchedRules = Object.entries(config.stageDomainsMap)
.find(([domain]) => new RegExp(domain).test(href));
if (!matchedRules) return {};
const [, domainsMap] = matchedRules;
return {
enabled: true,
hostnameTransforms: Object.keys(domainsMap).map((d) => ({
from: d,
to: domainsMap[d] === 'origin' ? `${d.includes('https') ? 'https://' : ''}${hostname}` : domainsMap[d],
})),
};
};

export const getConfig = async (originalState, strs = {}) => {
const state = addMissingStateProps(originalState);
const originSelection = Array.isArray(state.source) ? state.source.join(',') : state.source;
Expand Down Expand Up @@ -742,7 +758,7 @@ export const getConfig = async (originalState, strs = {}) => {
lastViewedSession: state.lastViewedSession || '',
},
customCard: ['card', `return \`${state.customCard}\``],
linkTransformer: pageConfig.caasLinkTransformer || {},
linkTransformer: pageConfig.caasLinkTransformer || stageMapToCaasTransforms(pageConfig),
headers: caasRequestHeaders,
};

Expand Down
1 change: 1 addition & 0 deletions libs/blocks/card-horizontal/card-horizontal.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

.card-horizontal a {
color: var(--text-color);
text-decoration: none;
}

.card-horizontal a:focus {
Expand Down
13 changes: 4 additions & 9 deletions libs/blocks/fragment/fragment.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,15 @@ const updateFragMap = (fragment, a, href) => {
}
};

const insertInlineFrag = (sections, a, relHref, mep, handleMepCommands) => {
const insertInlineFrag = (sections, a, relHref) => {
// Inline fragments only support one section, other sections are ignored
const fragChildren = [...sections[0].children];
if (a.parentElement.nodeName === 'DIV' && !a.parentElement.attributes.length) {
a.parentElement.replaceWith(...fragChildren);
} else {
a.replaceWith(...fragChildren);
}
fragChildren.forEach((child) => {
child.setAttribute('data-path', relHref);
if (handleMepCommands) mep.commands = handleMepCommands(mep.commands, child);
});
fragChildren.forEach((child) => child.setAttribute('data-path', relHref));
};

function replaceDotMedia(path, doc) {
Expand Down Expand Up @@ -132,16 +129,14 @@ export default async function init(a) {
const { updateFragDataProps } = await import('../../features/personalization/personalization.js');
updateFragDataProps(a, inline, sections, fragment);
}
let handleMepCommands = false;
if (mep?.commands?.length) {
const { handleCommands } = await import('../../features/personalization/personalization.js');
handleMepCommands = handleCommands;
handleCommands(mep?.commands, fragment, false, true);
}
if (inline) {
insertInlineFrag(sections, a, relHref, mep, handleMepCommands);
insertInlineFrag(sections, a, relHref, mep);
} else {
a.parentElement.replaceChild(fragment, a);
if (handleMepCommands) handleMepCommands(mep?.commands, fragment);
await loadArea(fragment);
}
}
Expand Down
4 changes: 4 additions & 0 deletions libs/blocks/global-footer/global-footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
list-style-type: none;
}

.global-footer a {
text-decoration: unset;
}

.global-footer a:hover {
text-decoration: none;
}
Expand Down
22 changes: 12 additions & 10 deletions libs/blocks/global-navigation/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,29 @@
--feds-height-breadcrumbs: 33px;
--feds-gutter: 8px;
/* Top navigation - backgrounds */
--feds-background-nav: #fff;
--feds-background-popup: #fafafa;
--feds-background-nav: #f8f8f8;
--feds-background-popup: #f3f3f3;
--feds-background-promo: #fff;
--feds-background-promo--dark: #000;
/* Top navigation - borders */
--feds-borderColor: #eaeaea;
--feds-borderColor-menu: #e1e1e1;
--feds-borderColor-navLink: #2c2c2c;
/* Top navigation - colors */
--feds-color-adobeBrand: #EB1000;
--feds-color-adobeBrand: #eb1000;
--feds-color-headline: #505050;
--feds-color-hamburger: #2d2d2d;
--feds-color-breadcrumbs--current: #2c2c2c;
--feds-color-signIn: #4B4B4B;
--feds-color-signIn: #4b4b4b;
/* Top navigation - misc */
--feds-radius-utilityIcon: 4px;
/* Links */
--feds-background-link--hover: #f5f5f5;
--feds-borderColor-link: #f3f3f3;
--feds-color-link: #2c2c2c;
--feds-color-link--hover: #1473e6;
--feds-color-navLink-description: #656565;
--feds-background-link--hover: #e9e9e9;
--feds-borderColor-link: #e9e9e9;
--feds-color-link: #292929;
--feds-color-blue-link: #3b63fb;
--feds-color-link--hover: #274dea;
--feds-color-navLink-description: #505050;
--feds-color-link-breadcrumbs: #707070;
/* Footer */
--feds-background-footer: #fafafa;
Expand Down Expand Up @@ -57,7 +59,7 @@
}

.feds-navLink--blue {
color: var(--feds-color-link--hover);
color: var(--feds-color-blue-link);
}

.feds-navLink--hoverCaret {
Expand Down
47 changes: 24 additions & 23 deletions libs/blocks/global-navigation/dark-nav.css
Original file line number Diff line number Diff line change
@@ -1,43 +1,44 @@
:root {
--text-color: #F2F2F2;
--text-color: #f2f2f2;
--background-color: #111;
--link-color: #1473e6;
--link-hover-color: #1473e6;
/* Top navigation - backgrounds */
--feds-background-popup: #111;
--feds-background-nav: #222;
--feds-background-nav--desktop: #1B1B1B;
--feds-background-nav--desktop: #1b1b1b;
/* Top navigation - borders */
--feds-borderColor: #303030;
--feds-borderColor-menu: #4B4B4B;
--feds-borderColor-navLink: #DBDBDB;
--feds-borderColor-menu: #4b4b4b;
--feds-borderColor-navLink: #dbdbdb;
--feds-background-promo: #1d1d1d;
/* Top navigation - colors */
--feds-color-adobeBrand: #FFF;
--feds-color-headline--mobile: #F2F2F2;
--feds-color-headline: #EBEBEB;
--feds-color-popup: #EBEBEB;
--feds-color-hamburger: #FFF;
--feds-color-breadcrumbs--current: #DBDBDB;
--feds-color-signIn: #DBDBDB;
--feds-color-search: #DBDBDB;
--feds-color-adobeBrand: #fff;
--feds-color-headline--mobile: #f2f2f2;
--feds-color-headline: #ebebeb;
--feds-color-popup: #ebebeb;
--feds-color-hamburger: #fff;
--feds-color-breadcrumbs--current: #dbdbdb;
--feds-color-signIn: #dbdbdb;
--feds-color-search: #dbdbdb;
/* Links */
--feds-color-link: #F2F2F2;
/* --feds-color-link--mobile: #F2F2F2; */
--feds-color-link--desktop: #DBDBDB;
--feds-color-link: #f2f2f2;
/* --feds-color-link--mobile: #f2f2f2; */
--feds-color-link--desktop: #dbdbdb;
--feds-color-link--hover: #1473e6;
--feds-color-blue-link: #5eaaf7;
--feds-color-navLink-description: #B0B0B0;
--feds-color-link-breadcrumbs: #B0B0B0;
--feds-background-link--hover: #1B1B1B;
--feds-color-blue-link: #5eaaF7;
--feds-color-navLink-description: #b0b0b0;
--feds-color-link-breadcrumbs: #b0b0b0;
--feds-background-link--hover: #1b1b1b;
--feds-borderColor-link: #323232;
/* Footer */
--feds-background-footer: #222;
--feds-background-footer--desktop: #1B1B1B;
--feds-background-footer--desktop: #1b1b1b;
--feds-borderColor-featuredProducts: #999;
/* Dropdown */
--feds-color-profile-heading--dark: #909090;
--feds-color-profile--dark: #DBDBDB;
--feds-color-profile--emphasis--dark: #F2F2F2;
--feds-color-profile--dark: #dbdbdb;
--feds-color-profile--emphasis--dark: #f2f2f2;
--feds-border-profile--dark: 1px solid var(--feds-borderColor);
}

Expand Down Expand Up @@ -166,7 +167,7 @@
@media (min-width: 900px) {
.feds--dark .feds-promo {
border: 1px solid var(--feds-borderColor);
background: #1D1D1D;
background: var(--feds-background-promo);
}

.feds--dark .feds-promo--dark,
Expand Down
10 changes: 5 additions & 5 deletions libs/blocks/global-navigation/global-navigation.css
Original file line number Diff line number Diff line change
Expand Up @@ -260,15 +260,15 @@ header.global-navigation {
}

.feds-cta--primary {
background-color: rgb(20, 115, 230);
border-color: rgb(20, 115, 230);
background-color: rgb(59, 99, 251);
border-color: rgb(59, 99, 251);
color: rgb(255, 255, 255);
}

.feds-cta--primary:hover,
.feds-cta--primary:focus {
background-color: rgb(13, 102, 208);
border-color: rgb(13, 102, 208);
background-color: rgb(39, 77, 234);
border-color: rgb(39, 77, 234);
color: rgb(255, 255, 255);
}

Expand Down Expand Up @@ -675,7 +675,7 @@ header.global-navigation {
right: 0;
justify-content: center;
border-bottom: unset;
box-shadow: 0 3px 2px rgb(142 142 142 / 30%);
border-bottom: 1px solid var(--feds-borderColor);
background: var(--feds-background-nav);
transform: translate3d(0,0,0); /* Fix Safari issues w/ position: sticky */
}
Expand Down
6 changes: 3 additions & 3 deletions libs/blocks/global-navigation/utilities/menu/menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
flex-direction: column;
width: 100%;
border: 1px solid var(--feds-borderColor);
background: var(--feds-background-nav);
background: var(--feds-background-promo);
white-space: normal;
box-sizing: content-box;
}
Expand Down Expand Up @@ -223,8 +223,8 @@
width: 100%;
display: flex;
justify-content: center;
border-top: solid 1px #f3f3f3;
background-color: #fff;
border-top: solid 1px var(--feds-borderColor);
background-color: var(--feds-background-nav);
}

.feds-crossCloudMenu {
Expand Down
14 changes: 12 additions & 2 deletions libs/blocks/gnav/gnav.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,17 @@ header button.gnav-toggle {
header .gnav-wrapper a.gnav-brand {
width: 56px;
grid-area: header;
justify-self: center;
display: flex;
justify-content: center;
align-items: center;
color: #eb1000;
font-size: 16px;
line-height: 16px;
font-weight: 700;
margin-left: 56px;
}

header .gnav-wrapper a.gnav-brand.brand-image-only {
width: auto;
}

header .gnav-wrapper a.gnav-brand.light {
Expand All @@ -125,6 +128,12 @@ header a.gnav-brand img {
width: 27px;
}

header a.gnav-brand.brand-image-only svg,
header a.gnav-brand.brand-image-only img {
width: auto;
height: 36px;
}

header span.gnav-brand-title {
display: none;
}
Expand Down Expand Up @@ -928,6 +937,7 @@ header .app-launcher {
width: unset;
grid-area: brand;
padding-right: 20px;
margin-left: auto;
}

.gnav-wrapper span.gnav-brand-title {
Expand Down
7 changes: 5 additions & 2 deletions libs/blocks/gnav/gnav.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {

const COMPANY_IMG = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 133.46 118.11"><defs><style>.cls-1{fill:#eb1000;}</style></defs><polygon class="cls-1" points="84.13 0 133.46 0 133.46 118.11 84.13 0"/><polygon class="cls-1" points="49.37 0 0 0 0 118.11 49.37 0"/><polygon class="cls-1" points="66.75 43.53 98.18 118.11 77.58 118.11 68.18 94.36 45.18 94.36 66.75 43.53"/></svg>';
const BRAND_IMG = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 234"><defs><style>.cls-1{fill:#eb1000;}.cls-2{fill:#fff;}</style></defs><rect class="cls-1" width="240" height="234" rx="42.5"/><path id="_256" data-name="256" class="cls-2" d="M186.617,175.95037H158.11058a6.24325,6.24325,0,0,1-5.84652-3.76911L121.31715,99.82211a1.36371,1.36371,0,0,0-2.61145-.034l-19.286,45.94252A1.63479,1.63479,0,0,0,100.92626,148h21.1992a3.26957,3.26957,0,0,1,3.01052,1.99409l9.2814,20.65452a3.81249,3.81249,0,0,1-3.5078,5.30176H53.734a3.51828,3.51828,0,0,1-3.2129-4.90437L99.61068,54.14376A6.639,6.639,0,0,1,105.843,50h28.31354a6.6281,6.6281,0,0,1,6.23289,4.14376L189.81885,171.046A3.51717,3.51717,0,0,1,186.617,175.95037Z"/></svg>';
const BRAND_LOGO_AS_TEXT = '<svg xmlns="http://www.w3.org/2000/svg" id="Layer_1" viewBox="0 0 64.57 35"><defs><style>.cls-1{fill: #eb1000;}</style></defs><path class="cls-1" d="M6.27,10.22h4.39l6.2,14.94h-4.64l-3.92-9.92-2.59,6.51h3.08l1.23,3.41H0l6.27-14.94ZM22.03,13.32c.45,0,.94.04,1.43.16v-3.7h3.88v14.72c-.89.4-2.81.89-4.73.89-3.48,0-6.47-1.98-6.47-5.93s2.88-6.13,5.89-6.13ZM22.52,22.19c.36,0,.65-.07.94-.16v-5.42c-.29-.11-.58-.16-.96-.16-1.27,0-2.45.94-2.45,2.92s1.2,2.81,2.47,2.81ZM34.25,13.32c3.23,0,5.98,2.18,5.98,6.02s-2.74,6.02-5.98,6.02-6-2.18-6-6.02,2.72-6.02,6-6.02ZM34.25,22.13c1.11,0,2.14-.89,2.14-2.79s-1.03-2.79-2.14-2.79-2.12.89-2.12,2.79.96,2.79,2.12,2.79ZM41.16,9.78h3.9v3.7c.47-.09.96-.16,1.45-.16,3.03,0,5.84,1.98,5.84,5.86,0,4.1-2.99,6.18-6.53,6.18-1.52,0-3.46-.31-4.66-.87v-14.72ZM45.91,22.17c1.34,0,2.56-.96,2.56-2.94,0-1.85-1.2-2.72-2.5-2.72-.36,0-.65.04-.91.16v5.35c.22.09.51.16.85.16ZM58.97,13.32c2.92,0,5.6,1.87,5.6,5.64,0,.51-.02,1-.09,1.49h-7.27c.4,1.32,1.56,1.94,3.01,1.94,1.18,0,2.27-.29,3.5-.82v2.97c-1.14.58-2.5.82-3.9.82-3.7,0-6.58-2.23-6.58-6.02s2.61-6.02,5.73-6.02ZM60.93,18.02c-.2-1.27-1.05-1.78-1.92-1.78s-1.58.54-1.87,1.78h3.79Z"/></svg>';
const SEARCH_ICON = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" focusable="false"><path d="M14 2A8 8 0 0 0 7.4 14.5L2.4 19.4a1.5 1.5 0 0 0 2.1 2.1L9.5 16.6A8 8 0 1 0 14 2Zm0 14.1A6.1 6.1 0 1 1 20.1 10 6.1 6.1 0 0 1 14 16.1Z"></path></svg>';
const SEARCH_DEBOUNCE_MS = 300;
export const IS_OPEN = 'is-open';
Expand Down Expand Up @@ -144,6 +145,7 @@ class Gnav {
decorateBrand = () => {
const brandBlock = this.body.querySelector('[class^="gnav-brand"]');
if (!brandBlock) return null;
const isBrandImage = brandBlock.matches('.brand-image-only');
const brandLinks = [...brandBlock.querySelectorAll('a')];
const brand = brandLinks.pop();
const brandTitle = brand.textContent;
Expand All @@ -157,10 +159,11 @@ class Gnav {
decorateSVG(brandLinks[0]);
brand.insertAdjacentElement('afterbegin', brandBlock.querySelector('img'));
} else {
brand.insertAdjacentHTML('afterbegin', BRAND_IMG);
const DEFAULT_IMAGE = isBrandImage ? BRAND_LOGO_AS_TEXT : BRAND_IMG;
brand.insertAdjacentHTML('afterbegin', DEFAULT_IMAGE);
}
}
brand.append(title);
if (!isBrandImage) brand.append(title);
return brand;
};

Expand Down
1 change: 1 addition & 0 deletions libs/blocks/marquee-anchors/marquee-anchors.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ html {
cursor: pointer;
position: relative;
color: var(--text-color);
text-decoration: none;
}

.marquee-anchors .links .anchor-link .heading-xs {
Expand Down
1 change: 0 additions & 1 deletion libs/blocks/tabs/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ const init = (block) => {
id: `tab-panel-${tabId}-${tabName}`,
role: 'tabpanel',
class: 'tabpanel',
tabindex: '0',
'aria-labelledby': `tab-${tabId}-${tabName}`,
'data-block-id': `tabs-${tabId}`,
};
Expand Down
3 changes: 2 additions & 1 deletion libs/blocks/text/link-farms.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@
text-decoration: underline;
}

.link-farm.text-block a:hover {
.link-farm.text-block a:is(:hover, :focus) {
text-decoration-style: double;
outline-offset: 3px;
}


Expand Down
2 changes: 1 addition & 1 deletion libs/deps/caas.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions libs/deps/mas/commerce.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions libs/deps/mas/mas.js

Large diffs are not rendered by default.

Loading

0 comments on commit eb83ef4

Please sign in to comment.