@navikt/ds-css 5.15.1 → 5.17.0

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.
Files changed (94) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/accordion.css +16 -1
  3. package/alert.css +10 -2
  4. package/button.css +53 -1
  5. package/chat.css +13 -0
  6. package/chips.css +41 -0
  7. package/copybutton.css +22 -0
  8. package/dist/component/accordion.css +16 -1
  9. package/dist/component/accordion.min.css +1 -1
  10. package/dist/component/alert.css +10 -2
  11. package/dist/component/alert.min.css +1 -1
  12. package/dist/component/button.css +56 -1
  13. package/dist/component/button.min.css +2 -2
  14. package/dist/component/chat.css +13 -0
  15. package/dist/component/chat.min.css +1 -1
  16. package/dist/component/chips.css +41 -0
  17. package/dist/component/chips.min.css +1 -1
  18. package/dist/component/copybutton.css +22 -0
  19. package/dist/component/copybutton.min.css +1 -1
  20. package/dist/component/dropdown.css +15 -2
  21. package/dist/component/dropdown.min.css +1 -1
  22. package/dist/component/expansioncard.css +10 -2
  23. package/dist/component/expansioncard.min.css +1 -1
  24. package/dist/component/form.css +316 -24
  25. package/dist/component/form.min.css +1 -1
  26. package/dist/component/helptext.css +16 -2
  27. package/dist/component/helptext.min.css +1 -1
  28. package/dist/component/index.css +783 -46
  29. package/dist/component/index.min.css +3 -3
  30. package/dist/component/internalheader.css +21 -0
  31. package/dist/component/internalheader.min.css +1 -1
  32. package/dist/component/link.css +3 -3
  33. package/dist/component/link.min.css +1 -1
  34. package/dist/component/linkpanel.css +4 -2
  35. package/dist/component/linkpanel.min.css +1 -1
  36. package/dist/component/loader.css +6 -0
  37. package/dist/component/loader.min.css +1 -1
  38. package/dist/component/modal.css +6 -0
  39. package/dist/component/modal.min.css +1 -1
  40. package/dist/component/popover.css +23 -0
  41. package/dist/component/popover.min.css +1 -1
  42. package/dist/component/readmore.css +15 -0
  43. package/dist/component/readmore.min.css +1 -1
  44. package/dist/component/skeleton.css +8 -0
  45. package/dist/component/skeleton.min.css +1 -1
  46. package/dist/component/stepper.css +35 -0
  47. package/dist/component/stepper.min.css +1 -1
  48. package/dist/component/table.css +26 -0
  49. package/dist/component/table.min.css +1 -1
  50. package/dist/component/tabs.css +21 -4
  51. package/dist/component/tabs.min.css +1 -1
  52. package/dist/component/tag.css +12 -0
  53. package/dist/component/tag.min.css +1 -1
  54. package/dist/component/timeline.css +54 -0
  55. package/dist/component/timeline.min.css +1 -1
  56. package/dist/component/togglegroup.css +33 -2
  57. package/dist/component/togglegroup.min.css +1 -1
  58. package/dist/component/tooltip.css +28 -0
  59. package/dist/component/tooltip.min.css +1 -1
  60. package/dist/components.css +825 -45
  61. package/dist/components.min.css +3 -3
  62. package/dist/global/tokens.css +1 -1
  63. package/dist/index.css +783 -46
  64. package/dist/index.min.css +3 -3
  65. package/dropdown.css +15 -2
  66. package/expansioncard.css +10 -2
  67. package/form/combobox.css +112 -19
  68. package/form/confirmation-panel.css +24 -0
  69. package/form/fieldset.css +7 -0
  70. package/form/form.css +6 -0
  71. package/form/radio-checkbox.css +82 -0
  72. package/form/search.css +12 -2
  73. package/form/select.css +21 -0
  74. package/form/switch.css +49 -0
  75. package/form/text-field.css +9 -1
  76. package/form/textarea.css +11 -2
  77. package/help-text.css +16 -2
  78. package/internalheader.css +21 -0
  79. package/link-panel.css +4 -2
  80. package/link.css +3 -3
  81. package/loader.css +6 -0
  82. package/modal.css +6 -0
  83. package/package.json +2 -2
  84. package/popover.css +23 -0
  85. package/read-more.css +15 -0
  86. package/skeleton.css +8 -0
  87. package/stepper.css +35 -0
  88. package/table.css +26 -0
  89. package/tabs.css +21 -4
  90. package/tag.css +12 -0
  91. package/timeline.css +54 -0
  92. package/toggle-group.css +33 -2
  93. package/tokens.json +2 -0
  94. package/tooltip.css +28 -0
@@ -636,7 +636,8 @@
636
636
  }
637
637
 
638
638
  .navds-accordion__header:focus-visible {
639
- outline: none;
639
+ outline: 2px solid transparent;
640
+ outline-offset: 3px;
640
641
  box-shadow: var(--a-shadow-focus);
641
642
  border-radius: var(--a-border-radius-large);
642
643
  }
@@ -751,6 +752,20 @@
751
752
  }
752
753
  }
753
754
 
755
+ @media (forced-colors: active) {
756
+ .navds-accordion__header {
757
+ border: 1px solid buttonborder;
758
+ background-color: canvas;
759
+ color: canvastext;
760
+ }
761
+
762
+ .navds-accordion__header:hover {
763
+ background-color: canvas;
764
+ border: 1px solid highlight;
765
+ color: highlight;
766
+ }
767
+ }
768
+
754
769
  .navds-alert {
755
770
  border-radius: var(--a-border-radius-medium);
756
771
  border: 1px solid;
@@ -786,7 +801,7 @@
786
801
  font-size: 1.5rem;
787
802
  align-self: flex-start;
788
803
  height: var(--a-font-line-height-xlarge);
789
- background: radial-gradient(circle, var(--a-surface-default) 50%, 0, transparent);
804
+ background: radial-gradient(circle, var(--a-surface-default) 47%, 0, transparent);
790
805
  }
791
806
 
792
807
  .navds-alert--small > .navds-alert__icon {
@@ -817,7 +832,7 @@
817
832
  }
818
833
 
819
834
  .navds-alert--warning > .navds-alert__icon {
820
- background: radial-gradient(circle at 50% 57%, var(--a-surface-default) 32%, 0, transparent);
835
+ background: radial-gradient(circle at 50% 57%, var(--a-surface-default) 30%, 0, transparent);
821
836
  color: var(--ac-alert-icon-warning-color, var(--a-icon-warning));
822
837
  }
823
838
 
@@ -853,6 +868,14 @@
853
868
  justify-content: flex-end;
854
869
  }
855
870
 
871
+ @media (forced-colors: active) {
872
+ .navds-alert {
873
+ border: 1px solid canvastext;
874
+ background-color: canvas;
875
+ color: canvastext;
876
+ }
877
+ }
878
+
856
879
  .navds-button {
857
880
  --__ac-button-padding: var(--a-spacing-3) var(--a-spacing-5);
858
881
 
@@ -902,7 +925,8 @@
902
925
  }
903
926
 
904
927
  .navds-button:focus-visible {
905
- outline: none;
928
+ outline: 2px solid transparent;
929
+ outline-offset: 2px;
906
930
  box-shadow: var(--a-shadow-focus);
907
931
  }
908
932
 
@@ -951,6 +975,17 @@
951
975
  color: var(--ac-button-primary-text, var(--__ac-button-primary-text, var(--a-text-on-action)));
952
976
  }
953
977
 
978
+ @media (forced-colors: active) {
979
+ .navds-button.navds-button--primary {
980
+ background-color: highlight;
981
+ color: highlighttext;
982
+ }
983
+
984
+ .navds-button.navds-button--primary span {
985
+ forced-color-adjust: none;
986
+ }
987
+ }
988
+
954
989
  .navds-button--primary:hover {
955
990
  background-color: var(--ac-button-primary-hover-bg, var(--__ac-button-primary-hover-bg, var(--a-surface-action-hover)));
956
991
  }
@@ -960,11 +995,19 @@
960
995
  }
961
996
 
962
997
  .navds-button--primary:focus-visible {
998
+ outline: 2px solid transparent;
999
+ outline-offset: 2px;
963
1000
  box-shadow:
964
1001
  inset 0 0 0 1px var(--ac-button-primary-focus-border, var(--__ac-button-primary-focus-border, var(--a-surface-default))),
965
1002
  var(--a-shadow-focus);
966
1003
  }
967
1004
 
1005
+ @media (forced-colors: active) {
1006
+ .navds-button--primary:focus-visible {
1007
+ box-shadow: none;
1008
+ }
1009
+ }
1010
+
968
1011
  @supports not selector(:focus-visible) {
969
1012
  .navds-button--primary:focus {
970
1013
  box-shadow:
@@ -1299,6 +1342,8 @@
1299
1342
  opacity: 0.3;
1300
1343
  }
1301
1344
 
1345
+ /* Loader overrides */
1346
+
1302
1347
  .navds-button .navds-loader .navds-loader__foreground {
1303
1348
  stroke: var(--ac-button-loader-stroke, currentColor);
1304
1349
  }
@@ -1308,6 +1353,39 @@
1308
1353
  stroke: var(--ac-button-primary-loader-stroke-bg, rgb(255 255 255 / 0.3));
1309
1354
  }
1310
1355
 
1356
+ @media (forced-colors: active) {
1357
+ .navds-button:not(.navds-button--loading):where(:disabled, .navds-button--disabled) {
1358
+ opacity: 1;
1359
+ color: GrayText;
1360
+ }
1361
+
1362
+ .navds-button {
1363
+ border: 1px solid transparent;
1364
+ color: ButtonText;
1365
+ background-color: ButtonFace;
1366
+ }
1367
+
1368
+ .navds-button:hover {
1369
+ background-color: highlighttext;
1370
+ border-color: highlight;
1371
+ color: highlight;
1372
+ box-shadow: none;
1373
+ }
1374
+
1375
+ .navds-button:hover span {
1376
+ forced-color-adjust: none;
1377
+ }
1378
+
1379
+ .navds-button .navds-loader .navds-loader__foreground {
1380
+ stroke: canvas;
1381
+ }
1382
+
1383
+ .navds-button--primary .navds-loader .navds-loader__background,
1384
+ .navds-button--danger .navds-loader .navds-loader__background {
1385
+ stroke: canvastext;
1386
+ }
1387
+ }
1388
+
1311
1389
  :root,
1312
1390
  :host {
1313
1391
  --navds-content-container-max-width: 79.5rem;
@@ -1434,6 +1512,19 @@
1434
1512
  align-self: flex-start;
1435
1513
  }
1436
1514
 
1515
+ @media (forced-colors: active) {
1516
+ .navds-chat__bubble,
1517
+ .navds-chat__avatar {
1518
+ border: 1px solid canvastext;
1519
+ background-color: canvas;
1520
+ color: canvastext;
1521
+ }
1522
+
1523
+ .navds-chat__avatar svg {
1524
+ forced-color-adjust: none;
1525
+ }
1526
+ }
1527
+
1437
1528
  .navds-chips {
1438
1529
  display: flex;
1439
1530
  gap: var(--a-spacing-2);
@@ -1629,6 +1720,47 @@
1629
1720
  padding-right: var(--a-spacing-05);
1630
1721
  }
1631
1722
 
1723
+ @media (forced-colors: active) {
1724
+ .navds-chips__chip {
1725
+ border: 1px solid transparent;
1726
+ }
1727
+
1728
+ .navds-chips__chip:hover {
1729
+ background-color: highlighttext;
1730
+ color: highlight;
1731
+ }
1732
+
1733
+ .navds-chips__chip:focus-visible {
1734
+ outline: 2px solid transparent;
1735
+ outline-offset: 2px;
1736
+ }
1737
+
1738
+ .navds-chips__chip:where([aria-pressed="true"], :active, :hover) > span {
1739
+ forced-color-adjust: none;
1740
+ }
1741
+
1742
+ .navds-chips__toggle:active {
1743
+ background-color: highlight;
1744
+ color: highlighttext;
1745
+ }
1746
+
1747
+ .navds-chips__toggle[aria-pressed="true"] {
1748
+ background-color: selecteditem;
1749
+ color: selecteditemtext;
1750
+ border: 1px solid selecteditem;
1751
+ }
1752
+
1753
+ .navds-chips__toggle[aria-pressed="true"]:hover {
1754
+ background-color: selecteditemtext;
1755
+ color: selecteditem;
1756
+ }
1757
+
1758
+ .navds-chips__toggle[aria-pressed="true"]:active {
1759
+ background-color: highlight;
1760
+ color: highlighttext;
1761
+ }
1762
+ }
1763
+
1632
1764
  .navds-copybutton {
1633
1765
  --__ac-copybutton-padding: var(--a-spacing-3) var(--a-spacing-5) var(--a-spacing-3) var(--a-spacing-4);
1634
1766
 
@@ -1643,6 +1775,21 @@
1643
1775
  place-content: center;
1644
1776
  }
1645
1777
 
1778
+ @media (forced-colors: active) {
1779
+ .navds-copybutton {
1780
+ background-color: ButtonFace;
1781
+ border-color: ButtonText;
1782
+ border: solid 1px ButtonText;
1783
+ color: ButtonText;
1784
+ }
1785
+
1786
+ .navds-copybutton.navds-copybutton:focus-visible {
1787
+ box-shadow: none;
1788
+ outline: 2px solid highlight;
1789
+ outline-offset: 2px;
1790
+ }
1791
+ }
1792
+
1646
1793
  .navds-copybutton--icon-right {
1647
1794
  --__ac-copybutton-padding: var(--a-spacing-3) var(--a-spacing-4) var(--a-spacing-3) var(--a-spacing-5);
1648
1795
  }
@@ -1820,6 +1967,13 @@
1820
1967
  opacity: 0.3;
1821
1968
  }
1822
1969
 
1970
+ @media (forced-colors: active) {
1971
+ .navds-copybutton:where(:disabled) {
1972
+ opacity: 1;
1973
+ border-color: GrayText;
1974
+ }
1975
+ }
1976
+
1823
1977
  .navds-dropdown__menu {
1824
1978
  overflow: hidden;
1825
1979
  padding: var(--a-spacing-2) 0;
@@ -1880,13 +2034,15 @@
1880
2034
  }
1881
2035
 
1882
2036
  .navds-dropdown__item:focus-visible {
1883
- outline: none;
2037
+ outline: 2px solid transparent;
2038
+ outline-offset: -2px;
1884
2039
  box-shadow: inset 0 0 0 2px var(--a-border-focus);
1885
2040
  }
1886
2041
 
1887
2042
  @supports not selector(:focus-visible) {
1888
2043
  .navds-dropdown__item:focus {
1889
- outline: none;
2044
+ outline: 2px solid transparent;
2045
+ outline-offset: -2px;
1890
2046
  box-shadow: inset 0 0 0 2px var(--a-border-focus);
1891
2047
  }
1892
2048
  }
@@ -1898,6 +2054,17 @@
1898
2054
  cursor: not-allowed;
1899
2055
  }
1900
2056
 
2057
+ @media (forced-colors: active) {
2058
+ .navds-dropdown__item:hover {
2059
+ color: highlight;
2060
+ }
2061
+
2062
+ .navds-dropdown__item:disabled {
2063
+ opacity: 1;
2064
+ color: graytext;
2065
+ }
2066
+ }
2067
+
1901
2068
  .navds-expansioncard {
1902
2069
  --__ac-expansioncard-border-color: var(--ac-expansioncard-border-color, var(--a-border-default));
1903
2070
  --__ac-expansioncard-border-radius: var(--ac-expansioncard-border-radius, var(--a-border-radius-large));
@@ -2047,13 +2214,13 @@
2047
2214
  }
2048
2215
 
2049
2216
  .navds-expansioncard__header-button:focus-visible {
2050
- outline: none;
2217
+ outline: 3px solid transparent;
2051
2218
  box-shadow: var(--a-shadow-focus);
2052
2219
  }
2053
2220
 
2054
2221
  @supports not selector(:focus-visible) {
2055
2222
  .navds-expansioncard__header-button:focus {
2056
- outline: none;
2223
+ outline: 3px solid transparent;
2057
2224
  box-shadow: var(--a-shadow-focus);
2058
2225
  }
2059
2226
  }
@@ -2125,6 +2292,14 @@
2125
2292
  }
2126
2293
  }
2127
2294
 
2295
+ @media (forced-colors: active) {
2296
+ .navds-expansioncard:hover {
2297
+ --__ac-expansioncard-border-color: highlight;
2298
+
2299
+ outline: 1px solid highlight;
2300
+ }
2301
+ }
2302
+
2128
2303
  .navds-guide-panel {
2129
2304
  --__ac-guide-panel-guide-size: 4rem;
2130
2305
 
@@ -2264,6 +2439,13 @@
2264
2439
  opacity: 0.3;
2265
2440
  }
2266
2441
 
2442
+ @media (forced-colors: active) {
2443
+ .navds-fieldset:disabled > .navds-fieldset__legend,
2444
+ .navds-fieldset:disabled > .navds-fieldset__description {
2445
+ opacity: 1;
2446
+ }
2447
+ }
2448
+
2267
2449
  .navds-form-field {
2268
2450
  display: grid;
2269
2451
  justify-items: start;
@@ -2310,6 +2492,12 @@
2310
2492
  align-self: flex-start;
2311
2493
  }
2312
2494
 
2495
+ @media (forced-colors: active) {
2496
+ .navds-form-field--disabled {
2497
+ opacity: 1;
2498
+ }
2499
+ }
2500
+
2313
2501
  .navds-error-summary {
2314
2502
  background-color: var(--ac-error-summary-bg, var(--a-surface-default));
2315
2503
  padding: var(--a-spacing-5);
@@ -2362,6 +2550,7 @@
2362
2550
  background-color: var(--ac-confirmation-panel-bg, var(--a-surface-warning-subtle));
2363
2551
  transition: background-color linear 100ms;
2364
2552
  justify-self: stretch;
2553
+ position: relative;
2365
2554
  }
2366
2555
 
2367
2556
  .navds-confirmation-panel__content {
@@ -2378,6 +2567,29 @@
2378
2567
  background-color: var(--ac-confirmation-panel-error-bg, var(--a-surface-danger-subtle));
2379
2568
  }
2380
2569
 
2570
+ @media (forced-colors: active) {
2571
+ .navds-confirmation-panel__inner::before {
2572
+ content: "";
2573
+ position: absolute;
2574
+ left: 0;
2575
+ top: 0;
2576
+ height: 100%;
2577
+ border-left: 8px solid;
2578
+ border-color: orange;
2579
+ forced-color-adjust: none;
2580
+ border-start-start-radius: calc(var(--a-border-radius-medium) - 1px);
2581
+ border-end-start-radius: calc(var(--a-border-radius-medium) - 1px);
2582
+ }
2583
+
2584
+ .navds-confirmation-panel--checked .navds-confirmation-panel__inner::before {
2585
+ border-color: green;
2586
+ }
2587
+
2588
+ .navds-confirmation-panel--error .navds-confirmation-panel__inner::before {
2589
+ border-color: red;
2590
+ }
2591
+ }
2592
+
2381
2593
  .navds-checkbox,
2382
2594
  .navds-radio {
2383
2595
  position: relative;
@@ -2452,6 +2664,8 @@
2452
2664
 
2453
2665
  .navds-checkbox__input:focus-visible + .navds-checkbox__label::before,
2454
2666
  .navds-radio__input:focus-visible + .navds-radio__label::before {
2667
+ outline: 2px solid transparent;
2668
+ outline-offset: 2px;
2455
2669
  box-shadow:
2456
2670
  0 0 0 2px var(--ac-radio-checkbox-border, var(--a-border-default)),
2457
2671
  0 0 0 2px var(--ac-radio-checkbox-bg, var(--a-surface-default)),
@@ -2461,6 +2675,8 @@
2461
2675
  @supports not selector(:focus-visible) {
2462
2676
  .navds-checkbox__input:focus + .navds-checkbox__label::before,
2463
2677
  .navds-radio__input:focus + .navds-radio__label::before {
2678
+ outline: 2px solid transparent;
2679
+ outline-offset: 2px;
2464
2680
  box-shadow:
2465
2681
  0 0 0 2px var(--ac-radio-checkbox-border, var(--a-border-default)),
2466
2682
  0 0 0 4px var(--a-border-focus);
@@ -2735,6 +2951,84 @@
2735
2951
  background-color: var(--a-icon-subtle);
2736
2952
  }
2737
2953
 
2954
+ @media (forced-colors: active) {
2955
+ .navds-checkbox__input:focus-visible + .navds-checkbox__label::before,
2956
+ .navds-radio__input:focus-visible + .navds-radio__label::before {
2957
+ outline-color: highlight;
2958
+ }
2959
+
2960
+ .navds-checkbox,
2961
+ .navds-radio {
2962
+ --__ac-radio-checkbox-high-contrast-bg: field;
2963
+ --__ac-radio-checkbox-high-contrast-text: fieldtext;
2964
+ --__ac-radio-checkbox-high-contrast-highlight: highlight;
2965
+ }
2966
+
2967
+ .navds-checkbox__label::before,
2968
+ .navds-radio__label::before {
2969
+ border: 1px solid var(--__ac-radio-checkbox-high-contrast-text);
2970
+ background-color: var(--__ac-radio-checkbox-high-contrast-bg);
2971
+ }
2972
+
2973
+ .navds-checkbox__input:checked + .navds-checkbox__label > .navds-checkbox__icon {
2974
+ color: var(--__ac-radio-checkbox-high-contrast-text);
2975
+ }
2976
+
2977
+ .navds-checkbox__input:indeterminate + .navds-checkbox__label::after {
2978
+ background-color: var(--__ac-radio-checkbox-high-contrast-text);
2979
+ }
2980
+
2981
+ .navds-radio__input:checked + .navds-radio__label::before {
2982
+ border: 1px solid var(--__ac-radio-checkbox-high-contrast-text);
2983
+ outline: 3px solid var(--__ac-radio-checkbox-high-contrast-bg);
2984
+ outline-offset: -4px;
2985
+ background-color: var(--__ac-radio-checkbox-high-contrast-text);
2986
+ }
2987
+
2988
+ .navds-radio__input:checked:focus-visible + .navds-radio__label::before {
2989
+ border: 1px solid var(--__ac-radio-checkbox-high-contrast-bg);
2990
+ outline: 2px solid highlight;
2991
+ outline-offset: 2px;
2992
+ }
2993
+
2994
+ :not(.navds-checkbox--readonly) > .navds-checkbox__input:hover:not(:disabled) + .navds-checkbox__label,
2995
+ :not(.navds-radio--readonly) > .navds-radio__input:hover:not(:disabled) + .navds-radio__label {
2996
+ color: highlight;
2997
+ }
2998
+
2999
+ .navds-checkbox__input:focus-visible + .navds-checkbox__label::before {
3000
+ outline: 2px solid var(--__ac-radio-checkbox-high-contrast-highlight);
3001
+ }
3002
+
3003
+ .navds-checkbox--readonly > .navds-checkbox__input:checked + .navds-checkbox__label::before {
3004
+ border: 1px solid var(--__ac-radio-checkbox-high-contrast-text);
3005
+ background-color: var(--__ac-radio-checkbox-high-contrast-bg);
3006
+ }
3007
+
3008
+ .navds-checkbox--readonly > .navds-checkbox__input:indeterminate + .navds-checkbox__label::after {
3009
+ background-color: var(--__ac-radio-checkbox-high-contrast-text);
3010
+ }
3011
+
3012
+ .navds-radio--readonly > .navds-radio__input:checked + .navds-radio__label::before {
3013
+ border: 1px solid var(--__ac-radio-checkbox-high-contrast-text);
3014
+ outline: 3px solid var(--__ac-radio-checkbox-high-contrast-bg);
3015
+ outline-offset: -4px;
3016
+ background-color: var(--__ac-radio-checkbox-high-contrast-text);
3017
+ }
3018
+
3019
+ .navds-checkbox--disabled,
3020
+ .navds-radio--disabled {
3021
+ opacity: 1;
3022
+
3023
+ --__ac-radio-checkbox-high-contrast-bg: field;
3024
+ --__ac-radio-checkbox-high-contrast-text: graytext;
3025
+ }
3026
+
3027
+ :is(.navds-checkbox--disabled, .navds-radio--disabled) :is(.navds-checkbox__label, .navds-radio__label) {
3028
+ color: graytext;
3029
+ }
3030
+ }
3031
+
2738
3032
  .navds-select__input {
2739
3033
  appearance: none;
2740
3034
  background-color: var(--ac-select-bg, var(--a-surface-default));
@@ -2750,6 +3044,21 @@
2750
3044
  padding-right: 2rem;
2751
3045
  }
2752
3046
 
3047
+ @media (forced-colors: active) {
3048
+ .navds-select__input.navds-select__input.navds-select__input {
3049
+ background-color: ButtonFace;
3050
+ border-color: ButtonText;
3051
+ color: ButtonText;
3052
+ forced-color-adjust: none;
3053
+ box-shadow: none;
3054
+ }
3055
+
3056
+ .navds-select__input.navds-select__input.navds-select__input:focus-visible {
3057
+ outline: 2px solid highlight;
3058
+ outline-offset: 2px;
3059
+ }
3060
+ }
3061
+
2753
3062
  .navds-select__input:hover {
2754
3063
  border-color: var(--ac-select-hover-bg, var(--a-border-action));
2755
3064
  cursor: pointer;
@@ -2783,6 +3092,12 @@
2783
3092
  color: var(--ac-select-text, var(--a-text-default));
2784
3093
  }
2785
3094
 
3095
+ @media (forced-colors: active) {
3096
+ .navds-select__chevron {
3097
+ color: ButtonText;
3098
+ }
3099
+ }
3100
+
2786
3101
  .navds-form-field--small .navds-select__input {
2787
3102
  min-height: 2rem;
2788
3103
  padding: 0 var(--a-spacing-8) 0 var(--a-spacing-2);
@@ -2944,6 +3259,8 @@
2944
3259
  }
2945
3260
 
2946
3261
  .navds-switch__input:focus-visible ~ .navds-switch__track {
3262
+ outline: 2px solid transparent;
3263
+ outline-offset: 2px;
2947
3264
  box-shadow:
2948
3265
  0 0 0 1px var(--a-surface-default),
2949
3266
  var(--a-shadow-focus);
@@ -2951,6 +3268,7 @@
2951
3268
 
2952
3269
  @supports not selector(:focus-visible) {
2953
3270
  .navds-switch__input:focus ~ .navds-switch__track {
3271
+ outline: 2px solid transparent;
2954
3272
  box-shadow:
2955
3273
  0 0 0 1px var(--a-surface-default),
2956
3274
  var(--a-shadow-focus);
@@ -3055,6 +3373,52 @@
3055
3373
  }
3056
3374
  }
3057
3375
 
3376
+ @media (forced-colors: active) {
3377
+ .navds-switch__input:hover ~ .navds-switch__label-wrapper,
3378
+ .navds-switch__label-wrapper:hover {
3379
+ color: highlight;
3380
+ }
3381
+
3382
+ .navds-switch__thumb,
3383
+ .navds-switch--readonly .navds-switch__thumb {
3384
+ background-color: fieldtext;
3385
+ }
3386
+
3387
+ .navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb,
3388
+ .navds-switch--readonly .navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb {
3389
+ color: field;
3390
+ }
3391
+
3392
+ .navds-switch__track {
3393
+ width: calc(2.75rem + 4px);
3394
+ height: calc(1.5rem + 4px);
3395
+ top: var(--a-spacing-3);
3396
+ border: 2px solid fieldtext;
3397
+ }
3398
+
3399
+ .navds-switch__input:focus-visible ~ .navds-switch__track {
3400
+ outline: 2px solid highlight;
3401
+ outline-offset: 2px;
3402
+ }
3403
+
3404
+ .navds-switch--disabled:not(.navds-switch--loading) {
3405
+ opacity: 1;
3406
+ }
3407
+
3408
+ .navds-switch--disabled:not(.navds-switch--loading) .navds-switch__thumb {
3409
+ background-color: graytext;
3410
+ }
3411
+
3412
+ .navds-switch--disabled:not(.navds-switch--loading) .navds-switch__track {
3413
+ border-color: graytext;
3414
+ }
3415
+
3416
+ .navds-switch--disabled:not(.navds-switch--loading) .navds-switch__label-wrapper,
3417
+ .navds-switch--disabled:not(.navds-switch--loading) .navds-switch__label-wrapper:hover {
3418
+ color: graytext !important;
3419
+ }
3420
+ }
3421
+
3058
3422
  .navds-text-field__input {
3059
3423
  appearance: none;
3060
3424
  padding: var(--a-spacing-2);
@@ -3084,7 +3448,8 @@
3084
3448
  }
3085
3449
 
3086
3450
  .navds-text-field__input:focus-visible {
3087
- outline: none;
3451
+ outline: 2px solid transparent;
3452
+ outline-offset: 2px;
3088
3453
  box-shadow: var(--a-shadow-focus);
3089
3454
  }
3090
3455
 
@@ -3144,6 +3509,13 @@
3144
3509
  -webkit-appearance: none;
3145
3510
  }
3146
3511
 
3512
+ @media (forced-colors: active) {
3513
+ .navds-text-field__input {
3514
+ background-color: field;
3515
+ color: fieldtext;
3516
+ }
3517
+ }
3518
+
3147
3519
  .navds-textarea__wrapper {
3148
3520
  --__ac-textarea-height: initial;
3149
3521
 
@@ -3176,13 +3548,15 @@
3176
3548
  }
3177
3549
 
3178
3550
  .navds-textarea__input:focus-visible {
3179
- outline: none;
3551
+ outline: 2px solid transparent;
3552
+ outline-offset: 2px;
3180
3553
  box-shadow: var(--a-shadow-focus);
3181
3554
  }
3182
3555
 
3183
3556
  @supports not selector(:focus-visible) {
3184
3557
  .navds-textarea__input:focus {
3185
- outline: none;
3558
+ outline: 2px solid transparent;
3559
+ outline-offset: 2px;
3186
3560
  box-shadow: var(--a-shadow-focus);
3187
3561
  }
3188
3562
  }
@@ -3267,6 +3641,13 @@
3267
3641
  cursor: default;
3268
3642
  }
3269
3643
 
3644
+ @media (forced-colors: active) {
3645
+ .navds-textarea__input {
3646
+ background-color: field;
3647
+ color: fieldtext;
3648
+ }
3649
+ }
3650
+
3270
3651
  .navds-search {
3271
3652
  display: flex;
3272
3653
  flex-direction: column;
@@ -3352,14 +3733,14 @@
3352
3733
  }
3353
3734
 
3354
3735
  .navds-search__button-clear:focus-visible {
3736
+ outline: 2px solid transparent;
3355
3737
  box-shadow: var(--a-shadow-focus);
3356
- outline: none;
3357
3738
  }
3358
3739
 
3359
3740
  @supports not selector(:focus-visible) {
3360
3741
  .navds-search__button-clear:focus {
3742
+ outline: 2px solid transparent;
3361
3743
  box-shadow: var(--a-shadow-focus);
3362
- outline: none;
3363
3744
  }
3364
3745
  }
3365
3746
 
@@ -3472,6 +3853,17 @@
3472
3853
  }
3473
3854
  }
3474
3855
 
3856
+ @media (forced-colors: active) {
3857
+ .navds-modal {
3858
+ outline: 2px solid transparent;
3859
+ outline: 2px solid transparent;
3860
+ }
3861
+
3862
+ .navds-search__button-clear:hover {
3863
+ color: highlight;
3864
+ }
3865
+ }
3866
+
3475
3867
  .navds-combobox__wrapper {
3476
3868
  display: flex;
3477
3869
  flex-direction: column;
@@ -3513,6 +3905,8 @@
3513
3905
 
3514
3906
  .navds-combobox--error
3515
3907
  .navds-text-field__input:not(:hover):not(:disabled):not(.navds-combobox__wrapper-inner--virtually-unfocused):focus-within {
3908
+ outline: 2px solid transparent;
3909
+ outline-offset: 2px;
3516
3910
  box-shadow:
3517
3911
  0 0 0 1px var(--ac-combobox-error-border, var(--a-border-danger)),
3518
3912
  var(--a-shadow-focus);
@@ -3548,7 +3942,6 @@
3548
3942
  }
3549
3943
 
3550
3944
  .navds-combobox__input {
3551
- z-index: 1;
3552
3945
  flex: 1;
3553
3946
  border: none;
3554
3947
  padding: 0;
@@ -3569,10 +3962,13 @@
3569
3962
  0 0 0 1px var(--a-surface-default) inset,
3570
3963
  var(--a-shadow-focus);
3571
3964
  box-shadow: var(--a-shadow-focus);
3965
+ outline: 3px solid transparent;
3966
+ outline-offset: 2px;
3572
3967
  }
3573
3968
 
3574
3969
  .navds-combobox__wrapper-inner:has(.navds-combobox__input:focus-visible).navds-combobox__wrapper-inner--virtually-unfocused {
3575
3970
  box-shadow: none;
3971
+ outline: none;
3576
3972
  }
3577
3973
 
3578
3974
  @supports not selector(:focus-visible) {
@@ -3587,10 +3983,13 @@
3587
3983
  0 0 0 1px var(--a-surface-default) inset,
3588
3984
  var(--a-shadow-focus);
3589
3985
  box-shadow: var(--a-shadow-focus);
3986
+ outline: 3px solid transparent;
3987
+ outline-offset: 2px;
3590
3988
  }
3591
3989
 
3592
3990
  .navds-combobox__wrapper-inner:has(.navds-combobox__input:focus).navds-combobox__wrapper-inner--virtually-unfocused {
3593
3991
  box-shadow: none;
3992
+ outline: none;
3594
3993
  }
3595
3994
  }
3596
3995
 
@@ -3600,10 +3999,13 @@
3600
3999
  0 0 0 1px var(--a-surface-default) inset,
3601
4000
  var(--a-shadow-focus);
3602
4001
  box-shadow: var(--a-shadow-focus);
4002
+ outline: 3px solid transparent;
4003
+ outline-offset: 2px;
3603
4004
  }
3604
4005
 
3605
4006
  .navds-combobox--focused .navds-combobox__wrapper-inner.navds-combobox__wrapper-inner--virtually-unfocused {
3606
4007
  box-shadow: none;
4008
+ outline: none;
3607
4009
  }
3608
4010
  }
3609
4011
 
@@ -3682,7 +4084,7 @@
3682
4084
  height: 1.25rem;
3683
4085
  }
3684
4086
 
3685
- /* dropdown list */
4087
+ /* dropdown & non selectable dropdown items */
3686
4088
 
3687
4089
  .navds-combobox__list {
3688
4090
  max-height: 290px;
@@ -3690,20 +4092,16 @@
3690
4092
  position: absolute;
3691
4093
  left: 0;
3692
4094
  right: 0;
3693
- z-index: 9999;
4095
+ z-index: var(--a-z-index-popover);
3694
4096
  top: calc(100% + var(--a-spacing-2));
3695
- list-style: none;
3696
- margin: 0;
3697
4097
  border: 1px solid var(--ac-combobox-list-border-color, var(--a-border-divider));
3698
4098
  display: flex;
3699
4099
  flex-direction: column;
3700
- align-items: flex-start;
3701
- padding: 0;
3702
4100
  box-shadow: var(--a-shadow-small);
3703
4101
  border-radius: var(--a-border-radius-medium);
3704
- gap: var(--a-spacing-1) 0;
3705
4102
  background-color: var(--ac-combobox-list-bg, var(--a-surface-default));
3706
4103
  color: var(--ac-combobox-list-text, var(--a-text-default));
4104
+ gap: var(--a-spacing-1) 0;
3707
4105
  }
3708
4106
 
3709
4107
  .navds-combobox__list--closed {
@@ -3715,34 +4113,70 @@
3715
4113
  width: 1.5rem;
3716
4114
  }
3717
4115
 
4116
+ .navds-combobox__list_non-selectables {
4117
+ position: sticky;
4118
+ top: 0;
4119
+ left: 0;
4120
+ right: 0;
4121
+ z-index: 1;
4122
+ }
4123
+
3718
4124
  .navds-combobox__list-item,
3719
- .navds-combobox__list-item__no-options,
3720
- .navds-combobox__list-item__new-option {
4125
+ .navds-combobox__list-item--loading,
4126
+ .navds-combobox__list-item--no-options,
4127
+ .navds-combobox__list-item--new-option,
4128
+ .navds-combobox__list-item--max-selected {
3721
4129
  display: flex;
3722
4130
  flex-direction: row;
3723
4131
  justify-content: space-between;
3724
- align-items: center;
3725
4132
  padding: var(--a-spacing-3);
3726
4133
  width: 100%;
3727
4134
  background-color: var(--ac-combobox-list-item-bg, var(--a-surface-default));
4135
+ scroll-margin-top: 50px;
3728
4136
  }
3729
4137
 
3730
4138
  .navds-form-field--small .navds-combobox__list-item,
3731
- .navds-form-field--small .navds-combobox__list-item__no-options,
3732
- .navds-form-field--small .navds-combobox__list-item__new-option {
4139
+ .navds-form-field--small .navds-combobox__list-item--loading,
4140
+ .navds-form-field--small .navds-combobox__list-item--no-options,
4141
+ .navds-form-field--small .navds-combobox__list-item--new-option,
4142
+ .navds-form-field--small .navds-combobox__list-item--max-selected {
3733
4143
  padding: calc(var(--a-spacing-3) / 2) var(--a-spacing-2);
3734
4144
  }
3735
4145
 
3736
4146
  .navds-combobox__list-item--loading {
3737
- display: flex;
3738
4147
  justify-content: center;
3739
- padding: var(--a-spacing-3);
3740
4148
  background-color: var(--ac-combobox-list-item-loading-bg, var(--a-surface-default));
4149
+ }
4150
+
4151
+ .navds-combobox__list-item--max-selected {
4152
+ background: var(--ac-combobox-list-item-max-selected-bg, var(--a-surface-info-subtle));
4153
+ border-start-start-radius: calc(var(--a-border-radius-medium) - 1px);
4154
+ border-start-end-radius: calc(var(--a-border-radius-medium) - 1px);
4155
+ border: 1px solid var(--ac-combobox-list-item-max-selected-border, var(--a-border-info));
4156
+ margin-bottom: calc(var(--a-spacing-1) * -1);
4157
+ }
4158
+
4159
+ .navds-combobox__list_non-selectables:hover {
4160
+ cursor: default;
4161
+ }
4162
+
4163
+ /* ul-list and selectable li-items */
4164
+
4165
+ .navds-combobox__list-options {
4166
+ list-style: none;
4167
+ margin: 0;
4168
+ padding: 0;
3741
4169
  width: 100%;
4170
+ display: inherit;
4171
+ flex-direction: inherit;
4172
+ gap: inherit;
4173
+ background-color: inherit;
4174
+ align-items: flex-start;
3742
4175
  }
3743
4176
 
3744
4177
  .navds-combobox__list-item--focus,
3745
- .navds-combobox__list--with-hover .navds-combobox__list-item:hover {
4178
+ .navds-combobox__list--with-hover
4179
+ .navds-combobox__list-item:not([data-no-focus="true"], .navds-combobox__list-item--new-option):hover {
3746
4180
  background-color: var(--ac-combobox-list-item-hover-bg, var(--a-surface-hover));
3747
4181
  cursor: pointer;
3748
4182
  border-left: 4px solid var(--ac-combobox-list-item-hover-border-left, var(--a-border-strong));
@@ -3754,6 +4188,11 @@
3754
4188
  padding-left: calc(var(--a-spacing-2) - 4px);
3755
4189
  }
3756
4190
 
4191
+ .navds-combobox__list-item[data-no-focus="true"] {
4192
+ cursor: not-allowed;
4193
+ opacity: 0.4;
4194
+ }
4195
+
3757
4196
  .navds-combobox__list-item--selected {
3758
4197
  background-color: var(--ac-combobox-list-item-selected-bg, var(--a-surface-selected));
3759
4198
  }
@@ -3769,7 +4208,7 @@
3769
4208
  padding-left: calc(var(--a-spacing-3) - 4px);
3770
4209
  }
3771
4210
 
3772
- .navds-combobox__list-item__new-option {
4211
+ .navds-combobox__list-item--new-option {
3773
4212
  border-bottom: 1px solid var(--a-border-divider);
3774
4213
  background: var(--a-surface-neutral-subtle);
3775
4214
  cursor: pointer;
@@ -3777,12 +4216,12 @@
3777
4216
  gap: 0.25rem;
3778
4217
  }
3779
4218
 
3780
- .navds-combobox__list--with-hover .navds-combobox__list-item__new-option:hover {
4219
+ .navds-combobox__list--with-hover .navds-combobox__list-item--new-option:hover {
3781
4220
  border-bottom: 1px solid var(--a-border-divider);
3782
4221
  background: var(--a-surface-neutral-subtle-hover);
3783
4222
  }
3784
4223
 
3785
- .navds-combobox__list-item__new-option--focus {
4224
+ .navds-combobox__list-item--new-option--focus {
3786
4225
  box-shadow:
3787
4226
  var(--a-shadow-focus) inset,
3788
4227
  var(--a-border-action) 0 0 0 5px inset;
@@ -3807,6 +4246,52 @@
3807
4246
  }
3808
4247
  }
3809
4248
 
4249
+ @media (forced-colors: active) {
4250
+ .navds-combobox__button-clear:hover {
4251
+ color: highlight;
4252
+ }
4253
+
4254
+ .navds-combobox__wrapper-inner:has(.navds-combobox__input:focus-visible) {
4255
+ outline-color: highlight;
4256
+ }
4257
+
4258
+ .navds-combobox__list-item--focus,
4259
+ .navds-combobox__list--with-hover
4260
+ .navds-combobox__list-item:not([data-no-focus="true"], .navds-combobox__list-item--new-option):hover {
4261
+ border-left-color: highlight;
4262
+ color: highlight;
4263
+ }
4264
+
4265
+ .navds-combobox__list-item[data-no-focus="true"] {
4266
+ opacity: 1;
4267
+ color: graytext;
4268
+ }
4269
+
4270
+ .navds-combobox__list-item--selected {
4271
+ background-color: selecteditem;
4272
+ color: selecteditemtext;
4273
+ }
4274
+
4275
+ .navds-combobox__list-item--selected > * {
4276
+ forced-color-adjust: none;
4277
+ }
4278
+
4279
+ .navds-combobox__list-item--selected.navds-combobox__list-item--focus,
4280
+ .navds-combobox__list--with-hover .navds-combobox__list-item--selected:hover {
4281
+ border-left-color: highlight;
4282
+ color: highlight;
4283
+ }
4284
+
4285
+ .navds-combobox__list--with-hover .navds-combobox__list-item--new-option:hover {
4286
+ color: highlight;
4287
+ }
4288
+
4289
+ .navds-combobox__list-item--new-option--focus {
4290
+ outline: 2px solid highlight;
4291
+ outline-offset: -3px;
4292
+ }
4293
+ }
4294
+
3810
4295
  .navds-help-text__button {
3811
4296
  margin: 0;
3812
4297
  border: 0;
@@ -3822,7 +4307,7 @@
3822
4307
  }
3823
4308
 
3824
4309
  .navds-help-text__button:focus-visible {
3825
- outline: none;
4310
+ outline: 2px solid transparent;
3826
4311
  box-shadow:
3827
4312
  0 0 0 1px var(--a-border-focus),
3828
4313
  inset 0 0 0 1px var(--a-border-focus);
@@ -3830,7 +4315,7 @@
3830
4315
 
3831
4316
  @supports not selector(:focus-visible) {
3832
4317
  .navds-help-text__button:focus {
3833
- outline: none;
4318
+ outline: 2px solid transparent;
3834
4319
  box-shadow:
3835
4320
  0 0 0 1px var(--a-border-focus),
3836
4321
  inset 0 0 0 1px var(--a-border-focus);
@@ -3874,6 +4359,20 @@
3874
4359
  }
3875
4360
  }
3876
4361
 
4362
+ @media (forced-colors: active) {
4363
+ .navds-help-text__button:where(:hover, :focus-visible, [aria-expanded="true"]) > .navds-help-text__icon {
4364
+ display: inherit;
4365
+ }
4366
+
4367
+ .navds-help-text__button:hover > .navds-help-text__icon {
4368
+ color: highlight;
4369
+ }
4370
+
4371
+ .navds-help-text__button:where(:hover, :focus-visible, [aria-expanded="true"]) > .navds-help-text__icon--filled {
4372
+ display: none;
4373
+ }
4374
+ }
4375
+
3877
4376
  .navds-internalheader {
3878
4377
  display: flex;
3879
4378
  align-self: stretch;
@@ -3883,6 +4382,27 @@
3883
4382
  --navds-internalheader-focus: inset 0 0 0 2px var(--a-border-focus-on-inverted);
3884
4383
  }
3885
4384
 
4385
+ @media (forced-colors: active) {
4386
+ .navds-internalheader {
4387
+ background-color: ButtonFace;
4388
+ border-color: ButtonText;
4389
+ border: solid 1px ButtonText;
4390
+ color: ButtonText;
4391
+ }
4392
+
4393
+ .navds-internalheader a:focus-visible {
4394
+ box-shadow: none;
4395
+ outline: 2px solid highlight;
4396
+ outline-offset: 2px;
4397
+ }
4398
+
4399
+ .navds-internalheader .navds-internalheader__button:focus-visible {
4400
+ box-shadow: none;
4401
+ outline: 2px solid highlight;
4402
+ outline-offset: 2px;
4403
+ }
4404
+ }
4405
+
3886
4406
  .navds-internalheader__title {
3887
4407
  border: none;
3888
4408
  overflow: visible;
@@ -3998,7 +4518,7 @@ button.navds-internalheader__title:active,
3998
4518
  }
3999
4519
 
4000
4520
  .navds-link:focus-visible {
4001
- outline: none;
4521
+ outline: 2px solid transparent;
4002
4522
  color: var(--ac-link-focus-text, var(--a-text-on-action));
4003
4523
  text-decoration: none;
4004
4524
  background-color: var(--ac-link-focus-bg, var(--a-border-focus));
@@ -4007,7 +4527,7 @@ button.navds-internalheader__title:active,
4007
4527
 
4008
4528
  @supports not selector(:focus-visible) {
4009
4529
  .navds-link:focus {
4010
- outline: none;
4530
+ outline: 2px solid transparent;
4011
4531
  color: var(--ac-link-focus-text, var(--a-text-on-action));
4012
4532
  text-decoration: none;
4013
4533
  background-color: var(--ac-link-focus-bg, var(--a-border-focus));
@@ -4016,7 +4536,7 @@ button.navds-internalheader__title:active,
4016
4536
  }
4017
4537
 
4018
4538
  .navds-link:active {
4019
- outline: none;
4539
+ outline: 2px solid transparent;
4020
4540
  color: var(--ac-link-active-text, var(--a-text-on-action));
4021
4541
  text-decoration: none;
4022
4542
  background-color: var(--ac-link-active-bg, var(--a-border-focus));
@@ -4154,6 +4674,12 @@ button.navds-internalheader__title:active,
4154
4674
  }
4155
4675
  }
4156
4676
 
4677
+ @media (forced-colors: active) {
4678
+ .navds-loader__background {
4679
+ stroke: canvastext;
4680
+ }
4681
+ }
4682
+
4157
4683
  .navds-modal__document-body {
4158
4684
  overflow: hidden;
4159
4685
  }
@@ -4326,6 +4852,9 @@ button.navds-internalheader__title:active,
4326
4852
  }
4327
4853
  }
4328
4854
 
4855
+ @media (forced-colors: active) {
4856
+ }
4857
+
4329
4858
  .navds-pagination__list {
4330
4859
  margin: 0;
4331
4860
  padding: 0;
@@ -4459,6 +4988,29 @@ button.navds-internalheader__title:active,
4459
4988
  border-top-color: transparent;
4460
4989
  }
4461
4990
 
4991
+ @media (forced-colors: active) {
4992
+ .navds-popover[data-placement^="top"] > .navds-popover__arrow {
4993
+ border-left-color: canvas;
4994
+ border-top-color: canvas;
4995
+ }
4996
+
4997
+ /* prettier-ignore */
4998
+ .navds-popover[data-placement^="bottom"] > .navds-popover__arrow {
4999
+ border-bottom-color: canvas;
5000
+ border-right-color: canvas;
5001
+ }
5002
+
5003
+ .navds-popover[data-placement^="left"] > .navds-popover__arrow {
5004
+ border-left-color: canvas;
5005
+ border-bottom-color: canvas;
5006
+ }
5007
+
5008
+ .navds-popover[data-placement^="right"] > .navds-popover__arrow {
5009
+ border-right-color: canvas;
5010
+ border-top-color: canvas;
5011
+ }
5012
+ }
5013
+
4462
5014
  .navds-date {
4463
5015
  padding: var(--a-spacing-4) var(--a-spacing-3);
4464
5016
  }
@@ -4989,6 +5541,18 @@ button.navds-internalheader__title:active,
4989
5541
  color: var(--ac-tag-alt-3-moderate-text, var(--a-text-default));
4990
5542
  }
4991
5543
 
5544
+ @media (forced-colors: active) {
5545
+ .navds-tag {
5546
+ forced-color-adjust: none;
5547
+ }
5548
+
5549
+ .navds-tag--neutral,
5550
+ .navds-tag--neutral-moderate {
5551
+ border-color: canvastext;
5552
+ color: canvastext;
5553
+ }
5554
+ }
5555
+
4992
5556
  .navds-timeline {
4993
5557
  position: relative;
4994
5558
  display: grid;
@@ -5385,6 +5949,60 @@ button.navds-internalheader__title:active,
5385
5949
  border-top-color: transparent;
5386
5950
  }
5387
5951
 
5952
+ @media (forced-colors: active) {
5953
+ .navds-timeline__period:focus {
5954
+ outline: 2px solid highlight;
5955
+ outline-offset: 2px;
5956
+ }
5957
+
5958
+ .navds-timeline__period--success,
5959
+ .navds-timeline__period--warning,
5960
+ .navds-timeline__period--info,
5961
+ .navds-timeline__period--neutral,
5962
+ .navds-timeline__period--danger {
5963
+ forced-color-adjust: none;
5964
+ }
5965
+
5966
+ .navds-timeline__row {
5967
+ border: 1px solid transparent;
5968
+ }
5969
+
5970
+ .navds-timeline__pin-wrapper::before {
5971
+ border: 1px solid transparent;
5972
+ }
5973
+
5974
+ .navds-timeline__pin-button {
5975
+ outline: 4px solid transparent;
5976
+ }
5977
+
5978
+ .navds-timeline__pin-button:focus,
5979
+ .navds-timeline__pin-button:focus-visible {
5980
+ outline: 4px solid highlight;
5981
+ outline-offset: 2px;
5982
+ box-shadow: none;
5983
+ }
5984
+
5985
+ .navds-timeline__popover[data-placement^="top"] > .navds-timeline__popover-arrow {
5986
+ border-left-color: canvas;
5987
+ border-top-color: canvas;
5988
+ }
5989
+
5990
+ .navds-timeline__popover[data-placement^="bottom"] > .navds-timeline__popover-arrow {
5991
+ border-bottom-color: canvas;
5992
+ border-right-color: canvas;
5993
+ }
5994
+
5995
+ .navds-timeline__popover[data-placement^="left"] > .navds-timeline__popover-arrow {
5996
+ border-left-color: canvas;
5997
+ border-bottom-color: canvas;
5998
+ }
5999
+
6000
+ .navds-timeline__popover[data-placement^="right"] > .navds-timeline__popover-arrow {
6001
+ border-right-color: canvas;
6002
+ border-top-color: canvas;
6003
+ }
6004
+ }
6005
+
5388
6006
  @keyframes tooltipFadeIn {
5389
6007
  0% {
5390
6008
  opacity: 0;
@@ -5439,6 +6057,34 @@ button.navds-internalheader__title:active,
5439
6057
  justify-content: center;
5440
6058
  }
5441
6059
 
6060
+ @media (forced-colors: active) {
6061
+ .navds-tooltip {
6062
+ --__a-tooltip-high-contrast-border: 1px solid transparent;
6063
+
6064
+ border: var(--__a-tooltip-high-contrast-border);
6065
+ }
6066
+
6067
+ .navds-tooltip[data-side="top"] .navds-tooltip__arrow {
6068
+ border-bottom: var(--__a-tooltip-high-contrast-border);
6069
+ border-right: var(--__a-tooltip-high-contrast-border);
6070
+ }
6071
+
6072
+ .navds-tooltip[data-side="right"] .navds-tooltip__arrow {
6073
+ border-bottom: var(--__a-tooltip-high-contrast-border);
6074
+ border-left: var(--__a-tooltip-high-contrast-border);
6075
+ }
6076
+
6077
+ .navds-tooltip[data-side="bottom"] .navds-tooltip__arrow {
6078
+ border-left: var(--__a-tooltip-high-contrast-border);
6079
+ border-top: var(--__a-tooltip-high-contrast-border);
6080
+ }
6081
+
6082
+ .navds-tooltip[data-side="left"] .navds-tooltip__arrow {
6083
+ border-top: var(--__a-tooltip-high-contrast-border);
6084
+ border-right: var(--__a-tooltip-high-contrast-border);
6085
+ }
6086
+ }
6087
+
5442
6088
  .navds-toggle-group__wrapper {
5443
6089
  display: grid;
5444
6090
  justify-items: start;
@@ -5506,7 +6152,8 @@ button.navds-internalheader__title:active,
5506
6152
  }
5507
6153
 
5508
6154
  .navds-toggle-group__button:focus-visible {
5509
- outline: none;
6155
+ outline: 2px solid transparent;
6156
+ outline-offset: 1px;
5510
6157
  box-shadow:
5511
6158
  0 0 0 1px var(--a-surface-default),
5512
6159
  0 0 0 4px var(--a-border-focus);
@@ -5514,7 +6161,8 @@ button.navds-internalheader__title:active,
5514
6161
 
5515
6162
  @supports not selector(:focus-visible) {
5516
6163
  .navds-toggle-group__button:focus {
5517
- outline: none;
6164
+ outline: 2px solid transparent;
6165
+ outline-offset: 1px;
5518
6166
  box-shadow:
5519
6167
  0 0 0 1px var(--a-surface-default),
5520
6168
  0 0 0 4px var(--a-border-focus);
@@ -5586,6 +6234,35 @@ button.navds-internalheader__title:active,
5586
6234
  font-size: 1.125rem;
5587
6235
  }
5588
6236
 
6237
+ @media (forced-colors: active) {
6238
+ .navds-toggle-group {
6239
+ border: 2px solid transparent;
6240
+ }
6241
+
6242
+ .navds-toggle-group__button:hover {
6243
+ color: highlight;
6244
+ }
6245
+
6246
+ .navds-toggle-group__button[aria-checked="true"],
6247
+ .navds-toggle-group__button[aria-pressed="true"] {
6248
+ background-color: selecteditem;
6249
+ color: selecteditemtext;
6250
+ }
6251
+
6252
+ .navds-toggle-group__button[aria-checked="true"] > *,
6253
+ .navds-toggle-group__button[aria-pressed="true"] > * {
6254
+ forced-color-adjust: none;
6255
+ }
6256
+
6257
+ .navds-toggle-group__button:active {
6258
+ background-color: none !important;
6259
+ }
6260
+
6261
+ .navds-toggle-group__button:focus-visible {
6262
+ outline-color: highlight;
6263
+ }
6264
+ }
6265
+
5589
6266
  .navds-panel {
5590
6267
  background-color: var(--ac-panel-bg, var(--a-surface-default));
5591
6268
  padding: var(--a-spacing-4);
@@ -5617,14 +6294,16 @@ button.navds-internalheader__title:active,
5617
6294
  }
5618
6295
 
5619
6296
  .navds-link-panel:focus-visible {
6297
+ outline: 3px solid transparent;
6298
+ outline-offset: 2px;
5620
6299
  box-shadow: var(--a-shadow-focus);
5621
- outline: none;
5622
6300
  }
5623
6301
 
5624
6302
  @supports not selector(:focus-visible) {
5625
6303
  .navds-link-panel:focus {
6304
+ outline: 3px solid transparent;
6305
+ outline-offset: 2px;
5626
6306
  box-shadow: var(--a-shadow-focus);
5627
- outline: none;
5628
6307
  }
5629
6308
  }
5630
6309
 
@@ -5661,6 +6340,21 @@ button.navds-internalheader__title:active,
5661
6340
  padding: var(--a-spacing-05) var(--a-spacing-1) var(--a-spacing-05) var(--a-spacing-05);
5662
6341
  }
5663
6342
 
6343
+ @media (forced-colors: active) {
6344
+ .navds-read-more__button {
6345
+ background-color: ButtonFace;
6346
+ border-color: ButtonText;
6347
+ border: solid 1px ButtonText;
6348
+ color: ButtonText;
6349
+ }
6350
+
6351
+ .navds-read-more__button.navds-read-more__button:focus-visible {
6352
+ box-shadow: none;
6353
+ outline: 2px solid highlight;
6354
+ outline-offset: 2px;
6355
+ }
6356
+ }
6357
+
5664
6358
  .navds-read-more__button:hover {
5665
6359
  background-color: var(--ac-read-more-hover-bg, var(--a-surface-hover));
5666
6360
  }
@@ -5779,6 +6473,14 @@ button.navds-internalheader__title:active,
5779
6473
  }
5780
6474
  }
5781
6475
 
6476
+ @media (forced-colors: active) {
6477
+ .navds-skeleton {
6478
+ forced-color-adjust: none;
6479
+ background-color: var(--a-surface-neutral);
6480
+ animation-duration: 2s;
6481
+ }
6482
+ }
6483
+
5782
6484
  .navds-stepper {
5783
6485
  --navds-stepper-circle-size: 1.75rem;
5784
6486
  --navds-stepper-border-width: 2px;
@@ -5851,6 +6553,41 @@ button.navds-internalheader__title:active,
5851
6553
  margin: calc(var(--navds-stepper-border-width) * -1) calc(var(--navds-stepper-border-width) * -1) 1.75rem;
5852
6554
  }
5853
6555
 
6556
+ @media (forced-colors: active) {
6557
+ .navds-stepper__step {
6558
+ background-color: ButtonFace;
6559
+ color: ButtonText;
6560
+ }
6561
+
6562
+ .navds-stepper__circle.navds-stepper__circle {
6563
+ border: 0;
6564
+ }
6565
+
6566
+ .navds-stepper__step .navds-stepper__circle {
6567
+ forced-color-adjust: none;
6568
+ background-color: ButtonText;
6569
+ border-color: ButtonText;
6570
+ color: ButtonFace;
6571
+ }
6572
+
6573
+ .navds-stepper__step.navds-stepper__step:focus-visible {
6574
+ box-shadow: none;
6575
+ outline: 2px solid highlight;
6576
+ outline-offset: 2px;
6577
+ }
6578
+
6579
+ .navds-stepper__step.navds-stepper__step--active .navds-stepper__circle {
6580
+ forced-color-adjust: none;
6581
+ background-color: highlight;
6582
+ border-color: highlighttext;
6583
+ color: highlighttext;
6584
+ }
6585
+
6586
+ .navds-stepper__line {
6587
+ background-color: ButtonText;
6588
+ }
6589
+ }
6590
+
5854
6591
  button.navds-stepper__step {
5855
6592
  appearance: none;
5856
6593
  border: none;
@@ -6317,6 +7054,32 @@ button.navds-stepper__step {
6317
7054
  padding: var(--a-spacing-2) calc(var(--a-spacing-2) + 3rem);
6318
7055
  }
6319
7056
 
7057
+ @media (forced-colors: active) {
7058
+ .navds-date.navds-date button.rdp-day_selected {
7059
+ forced-color-adjust: none;
7060
+ background-color: highlight;
7061
+ color: highlighttext;
7062
+ box-shadow: none;
7063
+ }
7064
+
7065
+ .navds-date.navds-date button {
7066
+ color: buttontext;
7067
+ forced-color-adjust: none;
7068
+ outline: none;
7069
+ box-shadow: none;
7070
+ }
7071
+
7072
+ .navds-date button:focus-visible {
7073
+ color: buttontext;
7074
+ forced-color-adjust: none;
7075
+ outline: 2px solid highlight;
7076
+ }
7077
+
7078
+ .navds-date.navds-date button.rdp-day_disabled {
7079
+ color: GrayText;
7080
+ }
7081
+ }
7082
+
6320
7083
  .navds-tabs__tablist-wrapper {
6321
7084
  box-shadow: inset 0 -1px 0 0 var(--ac-tabs-border, var(--a-border-divider));
6322
7085
  width: 100%;
@@ -6382,14 +7145,15 @@ button.navds-stepper__step {
6382
7145
  }
6383
7146
 
6384
7147
  .navds-tabs__tab:focus-visible {
6385
- outline: none;
7148
+ outline: 2px solid transparent;
7149
+ outline-offset: -2px;
6386
7150
  box-shadow: inset var(--a-shadow-focus);
6387
7151
  color: var(--ac-tabs-focus-text, var(--a-text-default));
6388
7152
  }
6389
7153
 
6390
7154
  @supports not selector(:focus-visible) {
6391
7155
  .navds-tabs__tab:focus {
6392
- outline: none;
7156
+ outline: 2px solid transparent;
6393
7157
  box-shadow: inset var(--a-shadow-focus);
6394
7158
  color: var(--ac-tabs-focus-text, var(--a-text-default));
6395
7159
  }
@@ -6436,17 +7200,33 @@ button.navds-stepper__step {
6436
7200
  }
6437
7201
 
6438
7202
  .navds-tabs__tabpanel:focus-visible {
6439
- outline: none;
7203
+ outline: 2px solid transparent;
6440
7204
  box-shadow: inset 0 0 0 2px var(--a-border-focus);
6441
7205
  }
6442
7206
 
6443
7207
  @supports not selector(:focus-visible) {
6444
7208
  .navds-tabs__tabpanel:focus {
6445
- outline: none;
7209
+ outline: 2px solid transparent;
6446
7210
  box-shadow: inset 0 0 0 2px var(--a-border-focus);
6447
7211
  }
6448
7212
  }
6449
7213
 
7214
+ @media (forced-colors: active) {
7215
+ .navds-tabs__tab[aria-selected="true"] {
7216
+ border-bottom: 3px solid canvastext;
7217
+ padding-block-end: calc(var(--a-spacing-3) - 3px);
7218
+ }
7219
+
7220
+ .navds-tabs__tab--small[aria-selected="true"] {
7221
+ padding-block-end: calc(var(--a-spacing-1-alt) - 3px);
7222
+ }
7223
+
7224
+ .navds-tabs__tab-icon--top[aria-selected="true"],
7225
+ .navds-tabs__tab--small.navds-tabs__tab-icon--top[aria-selected="true"] {
7226
+ padding-block-end: calc(var(--a-spacing-1) - 3px);
7227
+ }
7228
+ }
7229
+
6450
7230
  .navds-list ul,
6451
7231
  .navds-list ol {
6452
7232
  padding: 0;