Skip to content

Commit 5aed18b

Browse files
committed
revert changes in footer, awaiting header and footer answer
1 parent 4c7ac1d commit 5aed18b

2 files changed

Lines changed: 66 additions & 3 deletions

File tree

assets/css/cross-page.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ arm-top-navigation.lp-top-navigation {
229229
--ads-ui-green-80: var(--lp-accent-secondary);
230230
}
231231

232-
233232
/* Fix Masthead Height */
234233
#expanded-masthead {
235234
background-color: transparent;

themes/arm-design-system-hugo-theme/static/js/authentication.js

Lines changed: 66 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,12 @@ function applyTopNavHighlightColor() {
350350
--ads-ui-green-65: ${highlightColor};
351351
--ads-ui-green-70: ${highlightColor};
352352
--ads-ui-green-80: ${highlightColor};
353+
--ads-search-border-color: ${highlightColor};
354+
--ads-search-border-color-focus: ${highlightColor};
355+
--ads-search-border-color-hover: ${highlightColor};
356+
--ads-search-button-color: ${highlightColor};
357+
--ads-search-button-color-hover: ${highlightColor};
358+
--ads-search-input-color-focus: ${highlightColor};
353359
}
354360
355361
a:hover,
@@ -379,6 +385,29 @@ function applyTopNavHighlightColor() {
379385
stroke: ${highlightColor} !important;
380386
}
381387
388+
button[aria-expanded="true"],
389+
button[aria-pressed="true"],
390+
[role="button"][aria-expanded="true"],
391+
[role="button"][aria-pressed="true"],
392+
button[aria-expanded="true"] > svg,
393+
button[aria-expanded="true"] > svg *,
394+
button[aria-pressed="true"] > svg,
395+
button[aria-pressed="true"] > svg *,
396+
[role="button"][aria-expanded="true"] > svg,
397+
[role="button"][aria-expanded="true"] > svg *,
398+
[role="button"][aria-pressed="true"] > svg,
399+
[role="button"][aria-pressed="true"] > svg *,
400+
button[aria-expanded="true"] > i,
401+
button[aria-pressed="true"] > i,
402+
[role="button"][aria-expanded="true"] > i,
403+
[role="button"][aria-pressed="true"] > i {
404+
color: ${highlightColor} !important;
405+
-webkit-text-fill-color: ${highlightColor} !important;
406+
-webkit-text-stroke-color: ${highlightColor} !important;
407+
fill: ${highlightColor} !important;
408+
stroke: ${highlightColor} !important;
409+
}
410+
382411
a:hover::before,
383412
a:hover::after,
384413
button:hover::before,
@@ -388,7 +417,15 @@ function applyTopNavHighlightColor() {
388417
[role="link"]:hover::before,
389418
[role="link"]:hover::after,
390419
[role="menuitem"]:hover::before,
391-
[role="menuitem"]:hover::after {
420+
[role="menuitem"]:hover::after,
421+
button[aria-expanded="true"]::before,
422+
button[aria-expanded="true"]::after,
423+
button[aria-pressed="true"]::before,
424+
button[aria-pressed="true"]::after,
425+
[role="button"][aria-expanded="true"]::before,
426+
[role="button"][aria-expanded="true"]::after,
427+
[role="button"][aria-pressed="true"]::before,
428+
[role="button"][aria-pressed="true"]::after {
392429
background-color: ${highlightColor} !important;
393430
border-color: ${highlightColor} !important;
394431
}
@@ -413,6 +450,28 @@ function applyTopNavHighlightColor() {
413450
color: #00C1DE !important;
414451
-webkit-text-fill-color: #00C1DE !important;
415452
}
453+
454+
[class*="search"] input,
455+
[class*="search"] input:focus,
456+
[class*="search"] [role="searchbox"],
457+
[class*="search"] [role="searchbox"]:focus {
458+
border-bottom-color: ${highlightColor} !important;
459+
caret-color: ${highlightColor} !important;
460+
outline-color: ${highlightColor} !important;
461+
}
462+
463+
[class*="search"] svg,
464+
[class*="search"] svg *,
465+
[class*="search"] i,
466+
[class*="search"] button,
467+
[class*="search"] button *,
468+
[class*="search"] [role="button"],
469+
[class*="search"] [role="button"] * {
470+
color: ${highlightColor} !important;
471+
-webkit-text-fill-color: ${highlightColor} !important;
472+
fill: ${highlightColor} !important;
473+
stroke: ${highlightColor} !important;
474+
}
416475
`;
417476
shadowRoot.appendChild(style);
418477
}
@@ -422,20 +481,25 @@ function applyTopNavHighlightColor() {
422481
if (
423482
isArmGreen(styles.color) ||
424483
isArmGreen(styles.webkitTextFillColor) ||
484+
isArmGreen(styles.webkitTextStrokeColor) ||
425485
isArmGreen(styles.fill) ||
426-
isArmGreen(styles.stroke)
486+
isArmGreen(styles.stroke) ||
487+
isArmGreen(styles.borderColor) ||
488+
isArmGreen(styles.backgroundColor)
427489
) {
428490
element.style.setProperty("color", highlightColor, "important");
429491
element.style.setProperty("-webkit-text-fill-color", highlightColor, "important");
430492
element.style.setProperty("-webkit-text-stroke-color", highlightColor, "important");
431493
element.style.setProperty("fill", highlightColor, "important");
432494
element.style.setProperty("stroke", highlightColor, "important");
495+
element.style.setProperty("border-color", highlightColor, "important");
433496
}
434497
});
435498

436499
if (!topnav.learningPathsHighlightListenersAttached) {
437500
topnav.addEventListener("mouseover", () => window.requestAnimationFrame(applyTopNavHighlightColor));
438501
topnav.addEventListener("focusin", () => window.requestAnimationFrame(applyTopNavHighlightColor));
502+
topnav.addEventListener("click", () => scheduleTopNavHighlightColor());
439503
topnav.learningPathsHighlightListenersAttached = true;
440504
}
441505
}

0 commit comments

Comments
 (0)