@@ -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