@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
package/dist/index.css CHANGED
@@ -1,7 +1,7 @@
1
1
  @charset "UTF-8";
2
2
  /**
3
3
  * Do not edit directly
4
- * Generated on Wed, 17 Jan 2024 10:16:12 GMT
4
+ * Generated on Tue, 30 Jan 2024 15:51:01 GMT
5
5
  */
6
6
  :root, :host {
7
7
  --a-spacing-1-alt: 0.375rem;
@@ -1311,7 +1311,8 @@ body,
1311
1311
  box-shadow: var(--__ac-accordion-header-shadow);
1312
1312
  }
1313
1313
  .navds-accordion__header:focus-visible {
1314
- outline: none;
1314
+ outline: 2px solid transparent;
1315
+ outline-offset: 3px;
1315
1316
  box-shadow: var(--a-shadow-focus);
1316
1317
  border-radius: var(--a-border-radius-large);
1317
1318
  }
@@ -1406,6 +1407,19 @@ body,
1406
1407
  transform: translateY(0);
1407
1408
  }
1408
1409
  }
1410
+ @media (forced-colors: active) {
1411
+ .navds-accordion__header {
1412
+ border: 1px solid buttonborder;
1413
+ background-color: canvas;
1414
+ color: canvastext;
1415
+ }
1416
+
1417
+ .navds-accordion__header:hover {
1418
+ background-color: canvas;
1419
+ border: 1px solid highlight;
1420
+ color: highlight;
1421
+ }
1422
+ }
1409
1423
  .navds-alert {
1410
1424
  border-radius: var(--a-border-radius-medium);
1411
1425
  border: 1px solid;
@@ -1435,7 +1449,7 @@ body,
1435
1449
  font-size: 1.5rem;
1436
1450
  align-self: flex-start;
1437
1451
  height: var(--a-font-line-height-xlarge);
1438
- background: radial-gradient(circle, var(--a-surface-default) 50%, 0, transparent);
1452
+ background: radial-gradient(circle, var(--a-surface-default) 47%, 0, transparent);
1439
1453
  }
1440
1454
  .navds-alert--small > .navds-alert__icon {
1441
1455
  margin-block-start: 0;
@@ -1459,7 +1473,7 @@ body,
1459
1473
  background-color: var(--ac-alert-warning-bg, var(--a-surface-warning-subtle));
1460
1474
  }
1461
1475
  .navds-alert--warning > .navds-alert__icon {
1462
- background: radial-gradient(circle at 50% 57%, var(--a-surface-default) 32%, 0, transparent);
1476
+ background: radial-gradient(circle at 50% 57%, var(--a-surface-default) 30%, 0, transparent);
1463
1477
  color: var(--ac-alert-icon-warning-color, var(--a-icon-warning));
1464
1478
  }
1465
1479
  .navds-alert--info {
@@ -1488,6 +1502,13 @@ body,
1488
1502
  flex-flow: row nowrap;
1489
1503
  justify-content: flex-end;
1490
1504
  }
1505
+ @media (forced-colors: active) {
1506
+ .navds-alert {
1507
+ border: 1px solid canvastext;
1508
+ background-color: canvas;
1509
+ color: canvastext;
1510
+ }
1511
+ }
1491
1512
  .navds-button {
1492
1513
  --__ac-button-padding: var(--a-spacing-3) var(--a-spacing-5);
1493
1514
 
@@ -1531,7 +1552,8 @@ body,
1531
1552
  padding: var(--ac-button-padding-icon-only-xsmall, var(--__ac-button-padding));
1532
1553
  }
1533
1554
  .navds-button:focus-visible {
1534
- outline: none;
1555
+ outline: 2px solid transparent;
1556
+ outline-offset: 2px;
1535
1557
  box-shadow: var(--a-shadow-focus);
1536
1558
  }
1537
1559
  @supports not selector(:focus-visible) {
@@ -1570,6 +1592,16 @@ body,
1570
1592
  background-color: var(--ac-button-primary-bg, var(--__ac-button-primary-bg, var(--a-surface-action)));
1571
1593
  color: var(--ac-button-primary-text, var(--__ac-button-primary-text, var(--a-text-on-action)));
1572
1594
  }
1595
+ @media (forced-colors: active) {
1596
+ .navds-button.navds-button--primary {
1597
+ background-color: highlight;
1598
+ color: highlighttext;
1599
+ }
1600
+
1601
+ .navds-button.navds-button--primary span {
1602
+ forced-color-adjust: none;
1603
+ }
1604
+ }
1573
1605
  .navds-button--primary:hover {
1574
1606
  background-color: var(--ac-button-primary-hover-bg, var(--__ac-button-primary-hover-bg, var(--a-surface-action-hover)));
1575
1607
  }
@@ -1577,10 +1609,17 @@ body,
1577
1609
  background-color: var(--ac-button-primary-active-bg, var(--__ac-button-primary-active-bg, var(--a-surface-action-active)));
1578
1610
  }
1579
1611
  .navds-button--primary:focus-visible {
1612
+ outline: 2px solid transparent;
1613
+ outline-offset: 2px;
1580
1614
  box-shadow:
1581
1615
  inset 0 0 0 1px var(--ac-button-primary-focus-border, var(--__ac-button-primary-focus-border, var(--a-surface-default))),
1582
1616
  var(--a-shadow-focus);
1583
1617
  }
1618
+ @media (forced-colors: active) {
1619
+ .navds-button--primary:focus-visible {
1620
+ box-shadow: none;
1621
+ }
1622
+ }
1584
1623
  @supports not selector(:focus-visible) {
1585
1624
  .navds-button--primary:focus {
1586
1625
  box-shadow:
@@ -1858,6 +1897,7 @@ body,
1858
1897
  .navds-button:not(.navds-button--loading):where(:disabled, .navds-button--disabled) {
1859
1898
  opacity: 0.3;
1860
1899
  }
1900
+ /* Loader overrides */
1861
1901
  .navds-button .navds-loader .navds-loader__foreground {
1862
1902
  stroke: var(--ac-button-loader-stroke, currentColor);
1863
1903
  }
@@ -1865,6 +1905,38 @@ body,
1865
1905
  .navds-button--danger .navds-loader .navds-loader__background {
1866
1906
  stroke: var(--ac-button-primary-loader-stroke-bg, rgb(255 255 255 / 0.3));
1867
1907
  }
1908
+ @media (forced-colors: active) {
1909
+ .navds-button:not(.navds-button--loading):where(:disabled, .navds-button--disabled) {
1910
+ opacity: 1;
1911
+ color: GrayText;
1912
+ }
1913
+
1914
+ .navds-button {
1915
+ border: 1px solid transparent;
1916
+ color: ButtonText;
1917
+ background-color: ButtonFace;
1918
+ }
1919
+
1920
+ .navds-button:hover {
1921
+ background-color: highlighttext;
1922
+ border-color: highlight;
1923
+ color: highlight;
1924
+ box-shadow: none;
1925
+ }
1926
+
1927
+ .navds-button:hover span {
1928
+ forced-color-adjust: none;
1929
+ }
1930
+
1931
+ .navds-button .navds-loader .navds-loader__foreground {
1932
+ stroke: canvas;
1933
+ }
1934
+
1935
+ .navds-button--primary .navds-loader .navds-loader__background,
1936
+ .navds-button--danger .navds-loader .navds-loader__background {
1937
+ stroke: canvastext;
1938
+ }
1939
+ }
1868
1940
  .navds-content-container {
1869
1941
  margin-left: auto;
1870
1942
  margin-right: auto;
@@ -1967,6 +2039,18 @@ body,
1967
2039
  .navds-chat--right .navds-chat__top-text--left {
1968
2040
  align-self: flex-start;
1969
2041
  }
2042
+ @media (forced-colors: active) {
2043
+ .navds-chat__bubble,
2044
+ .navds-chat__avatar {
2045
+ border: 1px solid canvastext;
2046
+ background-color: canvas;
2047
+ color: canvastext;
2048
+ }
2049
+
2050
+ .navds-chat__avatar svg {
2051
+ forced-color-adjust: none;
2052
+ }
2053
+ }
1970
2054
  .navds-chips {
1971
2055
  display: flex;
1972
2056
  gap: var(--a-spacing-2);
@@ -2129,6 +2213,46 @@ body,
2129
2213
  .navds-chips--small .navds-chips--icon-right {
2130
2214
  padding-right: var(--a-spacing-05);
2131
2215
  }
2216
+ @media (forced-colors: active) {
2217
+ .navds-chips__chip {
2218
+ border: 1px solid transparent;
2219
+ }
2220
+
2221
+ .navds-chips__chip:hover {
2222
+ background-color: highlighttext;
2223
+ color: highlight;
2224
+ }
2225
+
2226
+ .navds-chips__chip:focus-visible {
2227
+ outline: 2px solid transparent;
2228
+ outline-offset: 2px;
2229
+ }
2230
+
2231
+ .navds-chips__chip:where([aria-pressed="true"], :active, :hover) > span {
2232
+ forced-color-adjust: none;
2233
+ }
2234
+
2235
+ .navds-chips__toggle:active {
2236
+ background-color: highlight;
2237
+ color: highlighttext;
2238
+ }
2239
+
2240
+ .navds-chips__toggle[aria-pressed="true"] {
2241
+ background-color: selecteditem;
2242
+ color: selecteditemtext;
2243
+ border: 1px solid selecteditem;
2244
+ }
2245
+
2246
+ .navds-chips__toggle[aria-pressed="true"]:hover {
2247
+ background-color: selecteditemtext;
2248
+ color: selecteditem;
2249
+ }
2250
+
2251
+ .navds-chips__toggle[aria-pressed="true"]:active {
2252
+ background-color: highlight;
2253
+ color: highlighttext;
2254
+ }
2255
+ }
2132
2256
  .navds-copybutton {
2133
2257
  --__ac-copybutton-padding: var(--a-spacing-3) var(--a-spacing-5) var(--a-spacing-3) var(--a-spacing-4);
2134
2258
 
@@ -2142,6 +2266,20 @@ body,
2142
2266
  display: grid;
2143
2267
  place-content: center;
2144
2268
  }
2269
+ @media (forced-colors: active) {
2270
+ .navds-copybutton {
2271
+ background-color: ButtonFace;
2272
+ border-color: ButtonText;
2273
+ border: solid 1px ButtonText;
2274
+ color: ButtonText;
2275
+ }
2276
+
2277
+ .navds-copybutton.navds-copybutton:focus-visible {
2278
+ box-shadow: none;
2279
+ outline: 2px solid highlight;
2280
+ outline-offset: 2px;
2281
+ }
2282
+ }
2145
2283
  .navds-copybutton--icon-right {
2146
2284
  --__ac-copybutton-padding: var(--a-spacing-3) var(--a-spacing-4) var(--a-spacing-3) var(--a-spacing-5);
2147
2285
  }
@@ -2284,6 +2422,12 @@ body,
2284
2422
  cursor: not-allowed;
2285
2423
  opacity: 0.3;
2286
2424
  }
2425
+ @media (forced-colors: active) {
2426
+ .navds-copybutton:where(:disabled) {
2427
+ opacity: 1;
2428
+ border-color: GrayText;
2429
+ }
2430
+ }
2287
2431
  .navds-dropdown__menu {
2288
2432
  overflow: hidden;
2289
2433
  padding: var(--a-spacing-2) 0;
@@ -2335,12 +2479,14 @@ body,
2335
2479
  color: var(--ac-dropdown-item-active-text, var(--a-text-on-action));
2336
2480
  }
2337
2481
  .navds-dropdown__item:focus-visible {
2338
- outline: none;
2482
+ outline: 2px solid transparent;
2483
+ outline-offset: -2px;
2339
2484
  box-shadow: inset 0 0 0 2px var(--a-border-focus);
2340
2485
  }
2341
2486
  @supports not selector(:focus-visible) {
2342
2487
  .navds-dropdown__item:focus {
2343
- outline: none;
2488
+ outline: 2px solid transparent;
2489
+ outline-offset: -2px;
2344
2490
  box-shadow: inset 0 0 0 2px var(--a-border-focus);
2345
2491
  }
2346
2492
  }
@@ -2350,6 +2496,16 @@ body,
2350
2496
  background: transparent;
2351
2497
  cursor: not-allowed;
2352
2498
  }
2499
+ @media (forced-colors: active) {
2500
+ .navds-dropdown__item:hover {
2501
+ color: highlight;
2502
+ }
2503
+
2504
+ .navds-dropdown__item:disabled {
2505
+ opacity: 1;
2506
+ color: graytext;
2507
+ }
2508
+ }
2353
2509
  .navds-expansioncard {
2354
2510
  --__ac-expansioncard-border-color: var(--ac-expansioncard-border-color, var(--a-border-default));
2355
2511
  --__ac-expansioncard-border-radius: var(--ac-expansioncard-border-radius, var(--a-border-radius-large));
@@ -2474,12 +2630,12 @@ body,
2474
2630
  transform: translateY(1px);
2475
2631
  }
2476
2632
  .navds-expansioncard__header-button:focus-visible {
2477
- outline: none;
2633
+ outline: 3px solid transparent;
2478
2634
  box-shadow: var(--a-shadow-focus);
2479
2635
  }
2480
2636
  @supports not selector(:focus-visible) {
2481
2637
  .navds-expansioncard__header-button:focus {
2482
- outline: none;
2638
+ outline: 3px solid transparent;
2483
2639
  box-shadow: var(--a-shadow-focus);
2484
2640
  }
2485
2641
  }
@@ -2541,6 +2697,13 @@ body,
2541
2697
  transform: translateY(0);
2542
2698
  }
2543
2699
  }
2700
+ @media (forced-colors: active) {
2701
+ .navds-expansioncard:hover {
2702
+ --__ac-expansioncard-border-color: highlight;
2703
+
2704
+ outline: 1px solid highlight;
2705
+ }
2706
+ }
2544
2707
  .navds-guide-panel {
2545
2708
  --__ac-guide-panel-guide-size: 4rem;
2546
2709
 
@@ -2658,6 +2821,12 @@ body,
2658
2821
  .navds-fieldset:disabled > .navds-fieldset__description {
2659
2822
  opacity: 0.3;
2660
2823
  }
2824
+ @media (forced-colors: active) {
2825
+ .navds-fieldset:disabled > .navds-fieldset__legend,
2826
+ .navds-fieldset:disabled > .navds-fieldset__description {
2827
+ opacity: 1;
2828
+ }
2829
+ }
2661
2830
  .navds-form-field {
2662
2831
  display: grid;
2663
2832
  justify-items: start;
@@ -2695,6 +2864,11 @@ body,
2695
2864
  flex-shrink: 0;
2696
2865
  align-self: flex-start;
2697
2866
  }
2867
+ @media (forced-colors: active) {
2868
+ .navds-form-field--disabled {
2869
+ opacity: 1;
2870
+ }
2871
+ }
2698
2872
  .navds-error-summary {
2699
2873
  background-color: var(--ac-error-summary-bg, var(--a-surface-default));
2700
2874
  padding: var(--a-spacing-5);
@@ -2740,6 +2914,7 @@ body,
2740
2914
  background-color: var(--ac-confirmation-panel-bg, var(--a-surface-warning-subtle));
2741
2915
  transition: background-color linear 100ms;
2742
2916
  justify-self: stretch;
2917
+ position: relative;
2743
2918
  }
2744
2919
  .navds-confirmation-panel__content {
2745
2920
  max-width: 80ch;
@@ -2752,6 +2927,28 @@ body,
2752
2927
  border-color: var(--ac-confirmation-panel-error-border, var(--a-border-danger));
2753
2928
  background-color: var(--ac-confirmation-panel-error-bg, var(--a-surface-danger-subtle));
2754
2929
  }
2930
+ @media (forced-colors: active) {
2931
+ .navds-confirmation-panel__inner::before {
2932
+ content: "";
2933
+ position: absolute;
2934
+ left: 0;
2935
+ top: 0;
2936
+ height: 100%;
2937
+ border-left: 8px solid;
2938
+ border-color: orange;
2939
+ forced-color-adjust: none;
2940
+ border-start-start-radius: calc(var(--a-border-radius-medium) - 1px);
2941
+ border-end-start-radius: calc(var(--a-border-radius-medium) - 1px);
2942
+ }
2943
+
2944
+ .navds-confirmation-panel--checked .navds-confirmation-panel__inner::before {
2945
+ border-color: green;
2946
+ }
2947
+
2948
+ .navds-confirmation-panel--error .navds-confirmation-panel__inner::before {
2949
+ border-color: red;
2950
+ }
2951
+ }
2755
2952
  .navds-checkbox,
2756
2953
  .navds-radio {
2757
2954
  position: relative;
@@ -2817,6 +3014,8 @@ body,
2817
3014
  }
2818
3015
  .navds-checkbox__input:focus-visible + .navds-checkbox__label::before,
2819
3016
  .navds-radio__input:focus-visible + .navds-radio__label::before {
3017
+ outline: 2px solid transparent;
3018
+ outline-offset: 2px;
2820
3019
  box-shadow:
2821
3020
  0 0 0 2px var(--ac-radio-checkbox-border, var(--a-border-default)),
2822
3021
  0 0 0 2px var(--ac-radio-checkbox-bg, var(--a-surface-default)),
@@ -2825,6 +3024,8 @@ body,
2825
3024
  @supports not selector(:focus-visible) {
2826
3025
  .navds-checkbox__input:focus + .navds-checkbox__label::before,
2827
3026
  .navds-radio__input:focus + .navds-radio__label::before {
3027
+ outline: 2px solid transparent;
3028
+ outline-offset: 2px;
2828
3029
  box-shadow:
2829
3030
  0 0 0 2px var(--ac-radio-checkbox-border, var(--a-border-default)),
2830
3031
  0 0 0 4px var(--a-border-focus);
@@ -3058,6 +3259,83 @@ body,
3058
3259
  .navds-checkbox--readonly > .navds-checkbox__input:indeterminate + .navds-checkbox__label::after {
3059
3260
  background-color: var(--a-icon-subtle);
3060
3261
  }
3262
+ @media (forced-colors: active) {
3263
+ .navds-checkbox__input:focus-visible + .navds-checkbox__label::before,
3264
+ .navds-radio__input:focus-visible + .navds-radio__label::before {
3265
+ outline-color: highlight;
3266
+ }
3267
+
3268
+ .navds-checkbox,
3269
+ .navds-radio {
3270
+ --__ac-radio-checkbox-high-contrast-bg: field;
3271
+ --__ac-radio-checkbox-high-contrast-text: fieldtext;
3272
+ --__ac-radio-checkbox-high-contrast-highlight: highlight;
3273
+ }
3274
+
3275
+ .navds-checkbox__label::before,
3276
+ .navds-radio__label::before {
3277
+ border: 1px solid var(--__ac-radio-checkbox-high-contrast-text);
3278
+ background-color: var(--__ac-radio-checkbox-high-contrast-bg);
3279
+ }
3280
+
3281
+ .navds-checkbox__input:checked + .navds-checkbox__label > .navds-checkbox__icon {
3282
+ color: var(--__ac-radio-checkbox-high-contrast-text);
3283
+ }
3284
+
3285
+ .navds-checkbox__input:indeterminate + .navds-checkbox__label::after {
3286
+ background-color: var(--__ac-radio-checkbox-high-contrast-text);
3287
+ }
3288
+
3289
+ .navds-radio__input:checked + .navds-radio__label::before {
3290
+ border: 1px solid var(--__ac-radio-checkbox-high-contrast-text);
3291
+ outline: 3px solid var(--__ac-radio-checkbox-high-contrast-bg);
3292
+ outline-offset: -4px;
3293
+ background-color: var(--__ac-radio-checkbox-high-contrast-text);
3294
+ }
3295
+
3296
+ .navds-radio__input:checked:focus-visible + .navds-radio__label::before {
3297
+ border: 1px solid var(--__ac-radio-checkbox-high-contrast-bg);
3298
+ outline: 2px solid highlight;
3299
+ outline-offset: 2px;
3300
+ }
3301
+
3302
+ :not(.navds-checkbox--readonly) > .navds-checkbox__input:hover:not(:disabled) + .navds-checkbox__label,
3303
+ :not(.navds-radio--readonly) > .navds-radio__input:hover:not(:disabled) + .navds-radio__label {
3304
+ color: highlight;
3305
+ }
3306
+
3307
+ .navds-checkbox__input:focus-visible + .navds-checkbox__label::before {
3308
+ outline: 2px solid var(--__ac-radio-checkbox-high-contrast-highlight);
3309
+ }
3310
+
3311
+ .navds-checkbox--readonly > .navds-checkbox__input:checked + .navds-checkbox__label::before {
3312
+ border: 1px solid var(--__ac-radio-checkbox-high-contrast-text);
3313
+ background-color: var(--__ac-radio-checkbox-high-contrast-bg);
3314
+ }
3315
+
3316
+ .navds-checkbox--readonly > .navds-checkbox__input:indeterminate + .navds-checkbox__label::after {
3317
+ background-color: var(--__ac-radio-checkbox-high-contrast-text);
3318
+ }
3319
+
3320
+ .navds-radio--readonly > .navds-radio__input:checked + .navds-radio__label::before {
3321
+ border: 1px solid var(--__ac-radio-checkbox-high-contrast-text);
3322
+ outline: 3px solid var(--__ac-radio-checkbox-high-contrast-bg);
3323
+ outline-offset: -4px;
3324
+ background-color: var(--__ac-radio-checkbox-high-contrast-text);
3325
+ }
3326
+
3327
+ .navds-checkbox--disabled,
3328
+ .navds-radio--disabled {
3329
+ opacity: 1;
3330
+
3331
+ --__ac-radio-checkbox-high-contrast-bg: field;
3332
+ --__ac-radio-checkbox-high-contrast-text: graytext;
3333
+ }
3334
+
3335
+ :is(.navds-checkbox--disabled, .navds-radio--disabled) :is(.navds-checkbox__label, .navds-radio__label) {
3336
+ color: graytext;
3337
+ }
3338
+ }
3061
3339
  .navds-select__input {
3062
3340
  appearance: none;
3063
3341
  background-color: var(--ac-select-bg, var(--a-surface-default));
@@ -3072,6 +3350,20 @@ body,
3072
3350
  padding: 0.5rem;
3073
3351
  padding-right: 2rem;
3074
3352
  }
3353
+ @media (forced-colors: active) {
3354
+ .navds-select__input.navds-select__input.navds-select__input {
3355
+ background-color: ButtonFace;
3356
+ border-color: ButtonText;
3357
+ color: ButtonText;
3358
+ forced-color-adjust: none;
3359
+ box-shadow: none;
3360
+ }
3361
+
3362
+ .navds-select__input.navds-select__input.navds-select__input:focus-visible {
3363
+ outline: 2px solid highlight;
3364
+ outline-offset: 2px;
3365
+ }
3366
+ }
3075
3367
  .navds-select__input:hover {
3076
3368
  border-color: var(--ac-select-hover-bg, var(--a-border-action));
3077
3369
  cursor: pointer;
@@ -3100,6 +3392,11 @@ body,
3100
3392
  align-self: center;
3101
3393
  color: var(--ac-select-text, var(--a-text-default));
3102
3394
  }
3395
+ @media (forced-colors: active) {
3396
+ .navds-select__chevron {
3397
+ color: ButtonText;
3398
+ }
3399
+ }
3103
3400
  .navds-form-field--small .navds-select__input {
3104
3401
  min-height: 2rem;
3105
3402
  padding: 0 var(--a-spacing-8) 0 var(--a-spacing-2);
@@ -3228,12 +3525,15 @@ body,
3228
3525
  background-color: var(--ac-switch-checked-bg, var(--a-border-action-selected));
3229
3526
  }
3230
3527
  .navds-switch__input:focus-visible ~ .navds-switch__track {
3528
+ outline: 2px solid transparent;
3529
+ outline-offset: 2px;
3231
3530
  box-shadow:
3232
3531
  0 0 0 1px var(--a-surface-default),
3233
3532
  var(--a-shadow-focus);
3234
3533
  }
3235
3534
  @supports not selector(:focus-visible) {
3236
3535
  .navds-switch__input:focus ~ .navds-switch__track {
3536
+ outline: 2px solid transparent;
3237
3537
  box-shadow:
3238
3538
  0 0 0 1px var(--a-surface-default),
3239
3539
  var(--a-shadow-focus);
@@ -3319,6 +3619,51 @@ body,
3319
3619
  transform: translateX(1.25rem);
3320
3620
  }
3321
3621
  }
3622
+ @media (forced-colors: active) {
3623
+ .navds-switch__input:hover ~ .navds-switch__label-wrapper,
3624
+ .navds-switch__label-wrapper:hover {
3625
+ color: highlight;
3626
+ }
3627
+
3628
+ .navds-switch__thumb,
3629
+ .navds-switch--readonly .navds-switch__thumb {
3630
+ background-color: fieldtext;
3631
+ }
3632
+
3633
+ .navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb,
3634
+ .navds-switch--readonly .navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb {
3635
+ color: field;
3636
+ }
3637
+
3638
+ .navds-switch__track {
3639
+ width: calc(2.75rem + 4px);
3640
+ height: calc(1.5rem + 4px);
3641
+ top: var(--a-spacing-3);
3642
+ border: 2px solid fieldtext;
3643
+ }
3644
+
3645
+ .navds-switch__input:focus-visible ~ .navds-switch__track {
3646
+ outline: 2px solid highlight;
3647
+ outline-offset: 2px;
3648
+ }
3649
+
3650
+ .navds-switch--disabled:not(.navds-switch--loading) {
3651
+ opacity: 1;
3652
+ }
3653
+
3654
+ .navds-switch--disabled:not(.navds-switch--loading) .navds-switch__thumb {
3655
+ background-color: graytext;
3656
+ }
3657
+
3658
+ .navds-switch--disabled:not(.navds-switch--loading) .navds-switch__track {
3659
+ border-color: graytext;
3660
+ }
3661
+
3662
+ .navds-switch--disabled:not(.navds-switch--loading) .navds-switch__label-wrapper,
3663
+ .navds-switch--disabled:not(.navds-switch--loading) .navds-switch__label-wrapper:hover {
3664
+ color: graytext !important;
3665
+ }
3666
+ }
3322
3667
  .navds-text-field__input {
3323
3668
  appearance: none;
3324
3669
  padding: var(--a-spacing-2);
@@ -3343,7 +3688,8 @@ body,
3343
3688
  border-color: var(--ac-textfield-hover-border, var(--__ac-textfield-hover-border, var(--a-border-action)));
3344
3689
  }
3345
3690
  .navds-text-field__input:focus-visible {
3346
- outline: none;
3691
+ outline: 2px solid transparent;
3692
+ outline-offset: 2px;
3347
3693
  box-shadow: var(--a-shadow-focus);
3348
3694
  }
3349
3695
  @supports not selector(:focus-visible) {
@@ -3392,6 +3738,12 @@ body,
3392
3738
  .navds-text-field__input[type="search"]::-webkit-search-results-decoration {
3393
3739
  -webkit-appearance: none;
3394
3740
  }
3741
+ @media (forced-colors: active) {
3742
+ .navds-text-field__input {
3743
+ background-color: field;
3744
+ color: fieldtext;
3745
+ }
3746
+ }
3395
3747
  .navds-textarea__wrapper {
3396
3748
  --__ac-textarea-height: initial;
3397
3749
 
@@ -3419,12 +3771,14 @@ body,
3419
3771
  border-color: var(--ac-textarea-hover-border, var(--__ac-textarea-hover-border, var(--a-border-action)));
3420
3772
  }
3421
3773
  .navds-textarea__input:focus-visible {
3422
- outline: none;
3774
+ outline: 2px solid transparent;
3775
+ outline-offset: 2px;
3423
3776
  box-shadow: var(--a-shadow-focus);
3424
3777
  }
3425
3778
  @supports not selector(:focus-visible) {
3426
3779
  .navds-textarea__input:focus {
3427
- outline: none;
3780
+ outline: 2px solid transparent;
3781
+ outline-offset: 2px;
3428
3782
  box-shadow: var(--a-shadow-focus);
3429
3783
  }
3430
3784
  }
@@ -3493,6 +3847,12 @@ body,
3493
3847
  border-color: var(--a-border-subtle);
3494
3848
  cursor: default;
3495
3849
  }
3850
+ @media (forced-colors: active) {
3851
+ .navds-textarea__input {
3852
+ background-color: field;
3853
+ color: fieldtext;
3854
+ }
3855
+ }
3496
3856
  .navds-search {
3497
3857
  display: flex;
3498
3858
  flex-direction: column;
@@ -3564,13 +3924,13 @@ body,
3564
3924
  color: var(--ac-search-clear-icon-hover, var(--__ac-search-clear-icon-hover, var(--a-text-action)));
3565
3925
  }
3566
3926
  .navds-search__button-clear:focus-visible {
3927
+ outline: 2px solid transparent;
3567
3928
  box-shadow: var(--a-shadow-focus);
3568
- outline: none;
3569
3929
  }
3570
3930
  @supports not selector(:focus-visible) {
3571
3931
  .navds-search__button-clear:focus {
3932
+ outline: 2px solid transparent;
3572
3933
  box-shadow: var(--a-shadow-focus);
3573
- outline: none;
3574
3934
  }
3575
3935
  }
3576
3936
  .navds-search__button-search {
@@ -3666,6 +4026,16 @@ body,
3666
4026
  z-index: 1;
3667
4027
  }
3668
4028
  }
4029
+ @media (forced-colors: active) {
4030
+ .navds-modal {
4031
+ outline: 2px solid transparent;
4032
+ outline: 2px solid transparent;
4033
+ }
4034
+
4035
+ .navds-search__button-clear:hover {
4036
+ color: highlight;
4037
+ }
4038
+ }
3669
4039
  .navds-combobox__wrapper {
3670
4040
  display: flex;
3671
4041
  flex-direction: column;
@@ -3700,6 +4070,8 @@ body,
3700
4070
  }
3701
4071
  .navds-combobox--error
3702
4072
  .navds-text-field__input:not(:hover):not(:disabled):not(.navds-combobox__wrapper-inner--virtually-unfocused):focus-within {
4073
+ outline: 2px solid transparent;
4074
+ outline-offset: 2px;
3703
4075
  box-shadow:
3704
4076
  0 0 0 1px var(--ac-combobox-error-border, var(--a-border-danger)),
3705
4077
  var(--a-shadow-focus);
@@ -3729,7 +4101,6 @@ body,
3729
4101
  width: 100%;
3730
4102
  }
3731
4103
  .navds-combobox__input {
3732
- z-index: 1;
3733
4104
  flex: 1;
3734
4105
  border: none;
3735
4106
  padding: 0;
@@ -3748,9 +4119,12 @@ body,
3748
4119
  0 0 0 1px var(--a-surface-default) inset,
3749
4120
  var(--a-shadow-focus);
3750
4121
  box-shadow: var(--a-shadow-focus);
4122
+ outline: 3px solid transparent;
4123
+ outline-offset: 2px;
3751
4124
  }
3752
4125
  .navds-combobox__wrapper-inner:has(.navds-combobox__input:focus-visible).navds-combobox__wrapper-inner--virtually-unfocused {
3753
4126
  box-shadow: none;
4127
+ outline: none;
3754
4128
  }
3755
4129
  @supports not selector(:focus-visible) {
3756
4130
  .navds-combobox__input:focus {
@@ -3764,10 +4138,13 @@ body,
3764
4138
  0 0 0 1px var(--a-surface-default) inset,
3765
4139
  var(--a-shadow-focus);
3766
4140
  box-shadow: var(--a-shadow-focus);
4141
+ outline: 3px solid transparent;
4142
+ outline-offset: 2px;
3767
4143
  }
3768
4144
 
3769
4145
  .navds-combobox__wrapper-inner:has(.navds-combobox__input:focus).navds-combobox__wrapper-inner--virtually-unfocused {
3770
4146
  box-shadow: none;
4147
+ outline: none;
3771
4148
  }
3772
4149
  }
3773
4150
  @supports not selector(:has) {
@@ -3776,10 +4153,13 @@ body,
3776
4153
  0 0 0 1px var(--a-surface-default) inset,
3777
4154
  var(--a-shadow-focus);
3778
4155
  box-shadow: var(--a-shadow-focus);
4156
+ outline: 3px solid transparent;
4157
+ outline-offset: 2px;
3779
4158
  }
3780
4159
 
3781
4160
  .navds-combobox--focused .navds-combobox__wrapper-inner.navds-combobox__wrapper-inner--virtually-unfocused {
3782
4161
  box-shadow: none;
4162
+ outline: none;
3783
4163
  }
3784
4164
  }
3785
4165
  .navds-combobox__button-clear {
@@ -3847,27 +4227,23 @@ body,
3847
4227
  width: 1.25rem;
3848
4228
  height: 1.25rem;
3849
4229
  }
3850
- /* dropdown list */
4230
+ /* dropdown & non selectable dropdown items */
3851
4231
  .navds-combobox__list {
3852
4232
  max-height: 290px;
3853
4233
  overflow-y: auto;
3854
4234
  position: absolute;
3855
4235
  left: 0;
3856
4236
  right: 0;
3857
- z-index: 9999;
4237
+ z-index: var(--a-z-index-popover);
3858
4238
  top: calc(100% + var(--a-spacing-2));
3859
- list-style: none;
3860
- margin: 0;
3861
4239
  border: 1px solid var(--ac-combobox-list-border-color, var(--a-border-divider));
3862
4240
  display: flex;
3863
4241
  flex-direction: column;
3864
- align-items: flex-start;
3865
- padding: 0;
3866
4242
  box-shadow: var(--a-shadow-small);
3867
4243
  border-radius: var(--a-border-radius-medium);
3868
- gap: var(--a-spacing-1) 0;
3869
4244
  background-color: var(--ac-combobox-list-bg, var(--a-surface-default));
3870
4245
  color: var(--ac-combobox-list-text, var(--a-text-default));
4246
+ gap: var(--a-spacing-1) 0;
3871
4247
  }
3872
4248
  .navds-combobox__list--closed {
3873
4249
  display: none;
@@ -3876,31 +4252,62 @@ body,
3876
4252
  height: 1.5rem;
3877
4253
  width: 1.5rem;
3878
4254
  }
4255
+ .navds-combobox__list_non-selectables {
4256
+ position: sticky;
4257
+ top: 0;
4258
+ left: 0;
4259
+ right: 0;
4260
+ z-index: 1;
4261
+ }
3879
4262
  .navds-combobox__list-item,
3880
- .navds-combobox__list-item__no-options,
3881
- .navds-combobox__list-item__new-option {
4263
+ .navds-combobox__list-item--loading,
4264
+ .navds-combobox__list-item--no-options,
4265
+ .navds-combobox__list-item--new-option,
4266
+ .navds-combobox__list-item--max-selected {
3882
4267
  display: flex;
3883
4268
  flex-direction: row;
3884
4269
  justify-content: space-between;
3885
- align-items: center;
3886
4270
  padding: var(--a-spacing-3);
3887
4271
  width: 100%;
3888
4272
  background-color: var(--ac-combobox-list-item-bg, var(--a-surface-default));
4273
+ scroll-margin-top: 50px;
3889
4274
  }
3890
4275
  .navds-form-field--small .navds-combobox__list-item,
3891
- .navds-form-field--small .navds-combobox__list-item__no-options,
3892
- .navds-form-field--small .navds-combobox__list-item__new-option {
4276
+ .navds-form-field--small .navds-combobox__list-item--loading,
4277
+ .navds-form-field--small .navds-combobox__list-item--no-options,
4278
+ .navds-form-field--small .navds-combobox__list-item--new-option,
4279
+ .navds-form-field--small .navds-combobox__list-item--max-selected {
3893
4280
  padding: calc(var(--a-spacing-3) / 2) var(--a-spacing-2);
3894
4281
  }
3895
4282
  .navds-combobox__list-item--loading {
3896
- display: flex;
3897
4283
  justify-content: center;
3898
- padding: var(--a-spacing-3);
3899
4284
  background-color: var(--ac-combobox-list-item-loading-bg, var(--a-surface-default));
4285
+ }
4286
+ .navds-combobox__list-item--max-selected {
4287
+ background: var(--ac-combobox-list-item-max-selected-bg, var(--a-surface-info-subtle));
4288
+ border-start-start-radius: calc(var(--a-border-radius-medium) - 1px);
4289
+ border-start-end-radius: calc(var(--a-border-radius-medium) - 1px);
4290
+ border: 1px solid var(--ac-combobox-list-item-max-selected-border, var(--a-border-info));
4291
+ margin-bottom: calc(var(--a-spacing-1) * -1);
4292
+ }
4293
+ .navds-combobox__list_non-selectables:hover {
4294
+ cursor: default;
4295
+ }
4296
+ /* ul-list and selectable li-items */
4297
+ .navds-combobox__list-options {
4298
+ list-style: none;
4299
+ margin: 0;
4300
+ padding: 0;
3900
4301
  width: 100%;
4302
+ display: inherit;
4303
+ flex-direction: inherit;
4304
+ gap: inherit;
4305
+ background-color: inherit;
4306
+ align-items: flex-start;
3901
4307
  }
3902
4308
  .navds-combobox__list-item--focus,
3903
- .navds-combobox__list--with-hover .navds-combobox__list-item:hover {
4309
+ .navds-combobox__list--with-hover
4310
+ .navds-combobox__list-item:not([data-no-focus="true"], .navds-combobox__list-item--new-option):hover {
3904
4311
  background-color: var(--ac-combobox-list-item-hover-bg, var(--a-surface-hover));
3905
4312
  cursor: pointer;
3906
4313
  border-left: 4px solid var(--ac-combobox-list-item-hover-border-left, var(--a-border-strong));
@@ -3910,6 +4317,10 @@ body,
3910
4317
  .navds-combobox__list--with-hover .navds-form-field--small .navds-combobox__list-item:hover {
3911
4318
  padding-left: calc(var(--a-spacing-2) - 4px);
3912
4319
  }
4320
+ .navds-combobox__list-item[data-no-focus="true"] {
4321
+ cursor: not-allowed;
4322
+ opacity: 0.4;
4323
+ }
3913
4324
  .navds-combobox__list-item--selected {
3914
4325
  background-color: var(--ac-combobox-list-item-selected-bg, var(--a-surface-selected));
3915
4326
  }
@@ -3922,18 +4333,18 @@ body,
3922
4333
  border-left: 4px solid var(--ac-combobox-list-item-selected-hover-border-left, var(--a-border-focus));
3923
4334
  padding-left: calc(var(--a-spacing-3) - 4px);
3924
4335
  }
3925
- .navds-combobox__list-item__new-option {
4336
+ .navds-combobox__list-item--new-option {
3926
4337
  border-bottom: 1px solid var(--a-border-divider);
3927
4338
  background: var(--a-surface-neutral-subtle);
3928
4339
  cursor: pointer;
3929
4340
  justify-content: flex-start;
3930
4341
  gap: 0.25rem;
3931
4342
  }
3932
- .navds-combobox__list--with-hover .navds-combobox__list-item__new-option:hover {
4343
+ .navds-combobox__list--with-hover .navds-combobox__list-item--new-option:hover {
3933
4344
  border-bottom: 1px solid var(--a-border-divider);
3934
4345
  background: var(--a-surface-neutral-subtle-hover);
3935
4346
  }
3936
- .navds-combobox__list-item__new-option--focus {
4347
+ .navds-combobox__list-item--new-option--focus {
3937
4348
  box-shadow:
3938
4349
  var(--a-shadow-focus) inset,
3939
4350
  var(--a-border-action) 0 0 0 5px inset;
@@ -3955,6 +4366,51 @@ body,
3955
4366
  gap: var(--a-spacing-1);
3956
4367
  }
3957
4368
  }
4369
+ @media (forced-colors: active) {
4370
+ .navds-combobox__button-clear:hover {
4371
+ color: highlight;
4372
+ }
4373
+
4374
+ .navds-combobox__wrapper-inner:has(.navds-combobox__input:focus-visible) {
4375
+ outline-color: highlight;
4376
+ }
4377
+
4378
+ .navds-combobox__list-item--focus,
4379
+ .navds-combobox__list--with-hover
4380
+ .navds-combobox__list-item:not([data-no-focus="true"], .navds-combobox__list-item--new-option):hover {
4381
+ border-left-color: highlight;
4382
+ color: highlight;
4383
+ }
4384
+
4385
+ .navds-combobox__list-item[data-no-focus="true"] {
4386
+ opacity: 1;
4387
+ color: graytext;
4388
+ }
4389
+
4390
+ .navds-combobox__list-item--selected {
4391
+ background-color: selecteditem;
4392
+ color: selecteditemtext;
4393
+ }
4394
+
4395
+ .navds-combobox__list-item--selected > * {
4396
+ forced-color-adjust: none;
4397
+ }
4398
+
4399
+ .navds-combobox__list-item--selected.navds-combobox__list-item--focus,
4400
+ .navds-combobox__list--with-hover .navds-combobox__list-item--selected:hover {
4401
+ border-left-color: highlight;
4402
+ color: highlight;
4403
+ }
4404
+
4405
+ .navds-combobox__list--with-hover .navds-combobox__list-item--new-option:hover {
4406
+ color: highlight;
4407
+ }
4408
+
4409
+ .navds-combobox__list-item--new-option--focus {
4410
+ outline: 2px solid highlight;
4411
+ outline-offset: -3px;
4412
+ }
4413
+ }
3958
4414
  .navds-help-text__button {
3959
4415
  margin: 0;
3960
4416
  border: 0;
@@ -3969,14 +4425,14 @@ body,
3969
4425
  padding: calc(var(--a-spacing-1) / 2);
3970
4426
  }
3971
4427
  .navds-help-text__button:focus-visible {
3972
- outline: none;
4428
+ outline: 2px solid transparent;
3973
4429
  box-shadow:
3974
4430
  0 0 0 1px var(--a-border-focus),
3975
4431
  inset 0 0 0 1px var(--a-border-focus);
3976
4432
  }
3977
4433
  @supports not selector(:focus-visible) {
3978
4434
  .navds-help-text__button:focus {
3979
- outline: none;
4435
+ outline: 2px solid transparent;
3980
4436
  box-shadow:
3981
4437
  0 0 0 1px var(--a-border-focus),
3982
4438
  inset 0 0 0 1px var(--a-border-focus);
@@ -4012,6 +4468,19 @@ body,
4012
4468
  display: inherit;
4013
4469
  }
4014
4470
  }
4471
+ @media (forced-colors: active) {
4472
+ .navds-help-text__button:where(:hover, :focus-visible, [aria-expanded="true"]) > .navds-help-text__icon {
4473
+ display: inherit;
4474
+ }
4475
+
4476
+ .navds-help-text__button:hover > .navds-help-text__icon {
4477
+ color: highlight;
4478
+ }
4479
+
4480
+ .navds-help-text__button:where(:hover, :focus-visible, [aria-expanded="true"]) > .navds-help-text__icon--filled {
4481
+ display: none;
4482
+ }
4483
+ }
4015
4484
  .navds-internalheader {
4016
4485
  display: flex;
4017
4486
  align-self: stretch;
@@ -4020,6 +4489,26 @@ body,
4020
4489
 
4021
4490
  --navds-internalheader-focus: inset 0 0 0 2px var(--a-border-focus-on-inverted);
4022
4491
  }
4492
+ @media (forced-colors: active) {
4493
+ .navds-internalheader {
4494
+ background-color: ButtonFace;
4495
+ border-color: ButtonText;
4496
+ border: solid 1px ButtonText;
4497
+ color: ButtonText;
4498
+ }
4499
+
4500
+ .navds-internalheader a:focus-visible {
4501
+ box-shadow: none;
4502
+ outline: 2px solid highlight;
4503
+ outline-offset: 2px;
4504
+ }
4505
+
4506
+ .navds-internalheader .navds-internalheader__button:focus-visible {
4507
+ box-shadow: none;
4508
+ outline: 2px solid highlight;
4509
+ outline-offset: 2px;
4510
+ }
4511
+ }
4023
4512
  .navds-internalheader__title {
4024
4513
  border: none;
4025
4514
  overflow: visible;
@@ -4119,7 +4608,7 @@ button.navds-internalheader__title:active,
4119
4608
  color: var(--a-text-default);
4120
4609
  }
4121
4610
  .navds-link:focus-visible {
4122
- outline: none;
4611
+ outline: 2px solid transparent;
4123
4612
  color: var(--ac-link-focus-text, var(--a-text-on-action));
4124
4613
  text-decoration: none;
4125
4614
  background-color: var(--ac-link-focus-bg, var(--a-border-focus));
@@ -4127,7 +4616,7 @@ button.navds-internalheader__title:active,
4127
4616
  }
4128
4617
  @supports not selector(:focus-visible) {
4129
4618
  .navds-link:focus {
4130
- outline: none;
4619
+ outline: 2px solid transparent;
4131
4620
  color: var(--ac-link-focus-text, var(--a-text-on-action));
4132
4621
  text-decoration: none;
4133
4622
  background-color: var(--ac-link-focus-bg, var(--a-border-focus));
@@ -4135,7 +4624,7 @@ button.navds-internalheader__title:active,
4135
4624
  }
4136
4625
  }
4137
4626
  .navds-link:active {
4138
- outline: none;
4627
+ outline: 2px solid transparent;
4139
4628
  color: var(--ac-link-active-text, var(--a-text-on-action));
4140
4629
  text-decoration: none;
4141
4630
  background-color: var(--ac-link-active-bg, var(--a-border-focus));
@@ -4251,6 +4740,11 @@ button.navds-internalheader__title:active,
4251
4740
  stroke-dashoffset: -120px;
4252
4741
  }
4253
4742
  }
4743
+ @media (forced-colors: active) {
4744
+ .navds-loader__background {
4745
+ stroke: canvastext;
4746
+ }
4747
+ }
4254
4748
  .navds-modal__document-body {
4255
4749
  overflow: hidden;
4256
4750
  }
@@ -4398,6 +4892,8 @@ button.navds-internalheader__title:active,
4398
4892
  opacity: 1;
4399
4893
  }
4400
4894
  }
4895
+ @media (forced-colors: active) {
4896
+ }
4401
4897
  .navds-pagination__list {
4402
4898
  margin: 0;
4403
4899
  padding: 0;
@@ -4507,6 +5003,28 @@ button.navds-internalheader__title:active,
4507
5003
  border-right-color: transparent;
4508
5004
  border-top-color: transparent;
4509
5005
  }
5006
+ @media (forced-colors: active) {
5007
+ .navds-popover[data-placement^="top"] > .navds-popover__arrow {
5008
+ border-left-color: canvas;
5009
+ border-top-color: canvas;
5010
+ }
5011
+
5012
+ /* prettier-ignore */
5013
+ .navds-popover[data-placement^="bottom"] > .navds-popover__arrow {
5014
+ border-bottom-color: canvas;
5015
+ border-right-color: canvas;
5016
+ }
5017
+
5018
+ .navds-popover[data-placement^="left"] > .navds-popover__arrow {
5019
+ border-left-color: canvas;
5020
+ border-bottom-color: canvas;
5021
+ }
5022
+
5023
+ .navds-popover[data-placement^="right"] > .navds-popover__arrow {
5024
+ border-right-color: canvas;
5025
+ border-top-color: canvas;
5026
+ }
5027
+ }
4510
5028
  .navds-date {
4511
5029
  padding: var(--a-spacing-4) var(--a-spacing-3);
4512
5030
  }
@@ -4953,6 +5471,17 @@ button.navds-internalheader__title:active,
4953
5471
  background-color: var(--ac-tag-alt-3-moderate-bg, var(--a-surface-alt-3-moderate));
4954
5472
  color: var(--ac-tag-alt-3-moderate-text, var(--a-text-default));
4955
5473
  }
5474
+ @media (forced-colors: active) {
5475
+ .navds-tag {
5476
+ forced-color-adjust: none;
5477
+ }
5478
+
5479
+ .navds-tag--neutral,
5480
+ .navds-tag--neutral-moderate {
5481
+ border-color: canvastext;
5482
+ color: canvastext;
5483
+ }
5484
+ }
4956
5485
  .navds-timeline {
4957
5486
  position: relative;
4958
5487
  display: grid;
@@ -5291,6 +5820,59 @@ button.navds-internalheader__title:active,
5291
5820
  border-right-color: transparent;
5292
5821
  border-top-color: transparent;
5293
5822
  }
5823
+ @media (forced-colors: active) {
5824
+ .navds-timeline__period:focus {
5825
+ outline: 2px solid highlight;
5826
+ outline-offset: 2px;
5827
+ }
5828
+
5829
+ .navds-timeline__period--success,
5830
+ .navds-timeline__period--warning,
5831
+ .navds-timeline__period--info,
5832
+ .navds-timeline__period--neutral,
5833
+ .navds-timeline__period--danger {
5834
+ forced-color-adjust: none;
5835
+ }
5836
+
5837
+ .navds-timeline__row {
5838
+ border: 1px solid transparent;
5839
+ }
5840
+
5841
+ .navds-timeline__pin-wrapper::before {
5842
+ border: 1px solid transparent;
5843
+ }
5844
+
5845
+ .navds-timeline__pin-button {
5846
+ outline: 4px solid transparent;
5847
+ }
5848
+
5849
+ .navds-timeline__pin-button:focus,
5850
+ .navds-timeline__pin-button:focus-visible {
5851
+ outline: 4px solid highlight;
5852
+ outline-offset: 2px;
5853
+ box-shadow: none;
5854
+ }
5855
+
5856
+ .navds-timeline__popover[data-placement^="top"] > .navds-timeline__popover-arrow {
5857
+ border-left-color: canvas;
5858
+ border-top-color: canvas;
5859
+ }
5860
+
5861
+ .navds-timeline__popover[data-placement^="bottom"] > .navds-timeline__popover-arrow {
5862
+ border-bottom-color: canvas;
5863
+ border-right-color: canvas;
5864
+ }
5865
+
5866
+ .navds-timeline__popover[data-placement^="left"] > .navds-timeline__popover-arrow {
5867
+ border-left-color: canvas;
5868
+ border-bottom-color: canvas;
5869
+ }
5870
+
5871
+ .navds-timeline__popover[data-placement^="right"] > .navds-timeline__popover-arrow {
5872
+ border-right-color: canvas;
5873
+ border-top-color: canvas;
5874
+ }
5875
+ }
5294
5876
  @keyframes tooltipFadeIn {
5295
5877
  0% {
5296
5878
  opacity: 0;
@@ -5340,6 +5922,33 @@ button.navds-internalheader__title:active,
5340
5922
  align-items: center;
5341
5923
  justify-content: center;
5342
5924
  }
5925
+ @media (forced-colors: active) {
5926
+ .navds-tooltip {
5927
+ --__a-tooltip-high-contrast-border: 1px solid transparent;
5928
+
5929
+ border: var(--__a-tooltip-high-contrast-border);
5930
+ }
5931
+
5932
+ .navds-tooltip[data-side="top"] .navds-tooltip__arrow {
5933
+ border-bottom: var(--__a-tooltip-high-contrast-border);
5934
+ border-right: var(--__a-tooltip-high-contrast-border);
5935
+ }
5936
+
5937
+ .navds-tooltip[data-side="right"] .navds-tooltip__arrow {
5938
+ border-bottom: var(--__a-tooltip-high-contrast-border);
5939
+ border-left: var(--__a-tooltip-high-contrast-border);
5940
+ }
5941
+
5942
+ .navds-tooltip[data-side="bottom"] .navds-tooltip__arrow {
5943
+ border-left: var(--__a-tooltip-high-contrast-border);
5944
+ border-top: var(--__a-tooltip-high-contrast-border);
5945
+ }
5946
+
5947
+ .navds-tooltip[data-side="left"] .navds-tooltip__arrow {
5948
+ border-top: var(--__a-tooltip-high-contrast-border);
5949
+ border-right: var(--__a-tooltip-high-contrast-border);
5950
+ }
5951
+ }
5343
5952
  .navds-toggle-group__wrapper {
5344
5953
  display: grid;
5345
5954
  justify-items: start;
@@ -5397,14 +6006,16 @@ button.navds-internalheader__title:active,
5397
6006
  color: var(--ac-toggle-group-button-neutral-hover-text, var(--a-text-default));
5398
6007
  }
5399
6008
  .navds-toggle-group__button:focus-visible {
5400
- outline: none;
6009
+ outline: 2px solid transparent;
6010
+ outline-offset: 1px;
5401
6011
  box-shadow:
5402
6012
  0 0 0 1px var(--a-surface-default),
5403
6013
  0 0 0 4px var(--a-border-focus);
5404
6014
  }
5405
6015
  @supports not selector(:focus-visible) {
5406
6016
  .navds-toggle-group__button:focus {
5407
- outline: none;
6017
+ outline: 2px solid transparent;
6018
+ outline-offset: 1px;
5408
6019
  box-shadow:
5409
6020
  0 0 0 1px var(--a-surface-default),
5410
6021
  0 0 0 4px var(--a-border-focus);
@@ -5464,6 +6075,34 @@ button.navds-internalheader__title:active,
5464
6075
  .navds-toggle-group--small > .navds-toggle-group__button > .navds-toggle-group__button-inner > svg {
5465
6076
  font-size: 1.125rem;
5466
6077
  }
6078
+ @media (forced-colors: active) {
6079
+ .navds-toggle-group {
6080
+ border: 2px solid transparent;
6081
+ }
6082
+
6083
+ .navds-toggle-group__button:hover {
6084
+ color: highlight;
6085
+ }
6086
+
6087
+ .navds-toggle-group__button[aria-checked="true"],
6088
+ .navds-toggle-group__button[aria-pressed="true"] {
6089
+ background-color: selecteditem;
6090
+ color: selecteditemtext;
6091
+ }
6092
+
6093
+ .navds-toggle-group__button[aria-checked="true"] > *,
6094
+ .navds-toggle-group__button[aria-pressed="true"] > * {
6095
+ forced-color-adjust: none;
6096
+ }
6097
+
6098
+ .navds-toggle-group__button:active {
6099
+ background-color: none !important;
6100
+ }
6101
+
6102
+ .navds-toggle-group__button:focus-visible {
6103
+ outline-color: highlight;
6104
+ }
6105
+ }
5467
6106
  .navds-panel {
5468
6107
  background-color: var(--ac-panel-bg, var(--a-surface-default));
5469
6108
  padding: var(--a-spacing-4);
@@ -5490,13 +6129,15 @@ button.navds-internalheader__title:active,
5490
6129
  border-color: var(--ac-link-panel-hover-border, var(--a-border-action));
5491
6130
  }
5492
6131
  .navds-link-panel:focus-visible {
6132
+ outline: 3px solid transparent;
6133
+ outline-offset: 2px;
5493
6134
  box-shadow: var(--a-shadow-focus);
5494
- outline: none;
5495
6135
  }
5496
6136
  @supports not selector(:focus-visible) {
5497
6137
  .navds-link-panel:focus {
6138
+ outline: 3px solid transparent;
6139
+ outline-offset: 2px;
5498
6140
  box-shadow: var(--a-shadow-focus);
5499
- outline: none;
5500
6141
  }
5501
6142
  }
5502
6143
  .navds-link-panel__chevron {
@@ -5527,6 +6168,20 @@ button.navds-internalheader__title:active,
5527
6168
  .navds-read-more--small .navds-read-more__button {
5528
6169
  padding: var(--a-spacing-05) var(--a-spacing-1) var(--a-spacing-05) var(--a-spacing-05);
5529
6170
  }
6171
+ @media (forced-colors: active) {
6172
+ .navds-read-more__button {
6173
+ background-color: ButtonFace;
6174
+ border-color: ButtonText;
6175
+ border: solid 1px ButtonText;
6176
+ color: ButtonText;
6177
+ }
6178
+
6179
+ .navds-read-more__button.navds-read-more__button:focus-visible {
6180
+ box-shadow: none;
6181
+ outline: 2px solid highlight;
6182
+ outline-offset: 2px;
6183
+ }
6184
+ }
5530
6185
  .navds-read-more__button:hover {
5531
6186
  background-color: var(--ac-read-more-hover-bg, var(--a-surface-hover));
5532
6187
  }
@@ -5621,6 +6276,13 @@ button.navds-internalheader__title:active,
5621
6276
  opacity: 0.4;
5622
6277
  }
5623
6278
  }
6279
+ @media (forced-colors: active) {
6280
+ .navds-skeleton {
6281
+ forced-color-adjust: none;
6282
+ background-color: var(--a-surface-neutral);
6283
+ animation-duration: 2s;
6284
+ }
6285
+ }
5624
6286
  .navds-stepper {
5625
6287
  --navds-stepper-circle-size: 1.75rem;
5626
6288
  --navds-stepper-border-width: 2px;
@@ -5683,6 +6345,40 @@ button.navds-internalheader__title:active,
5683
6345
  padding: var(--navds-stepper-border-width);
5684
6346
  margin: calc(var(--navds-stepper-border-width) * -1) calc(var(--navds-stepper-border-width) * -1) 1.75rem;
5685
6347
  }
6348
+ @media (forced-colors: active) {
6349
+ .navds-stepper__step {
6350
+ background-color: ButtonFace;
6351
+ color: ButtonText;
6352
+ }
6353
+
6354
+ .navds-stepper__circle.navds-stepper__circle {
6355
+ border: 0;
6356
+ }
6357
+
6358
+ .navds-stepper__step .navds-stepper__circle {
6359
+ forced-color-adjust: none;
6360
+ background-color: ButtonText;
6361
+ border-color: ButtonText;
6362
+ color: ButtonFace;
6363
+ }
6364
+
6365
+ .navds-stepper__step.navds-stepper__step:focus-visible {
6366
+ box-shadow: none;
6367
+ outline: 2px solid highlight;
6368
+ outline-offset: 2px;
6369
+ }
6370
+
6371
+ .navds-stepper__step.navds-stepper__step--active .navds-stepper__circle {
6372
+ forced-color-adjust: none;
6373
+ background-color: highlight;
6374
+ border-color: highlighttext;
6375
+ color: highlighttext;
6376
+ }
6377
+
6378
+ .navds-stepper__line {
6379
+ background-color: ButtonText;
6380
+ }
6381
+ }
5686
6382
  button.navds-stepper__step {
5687
6383
  appearance: none;
5688
6384
  border: none;
@@ -6060,6 +6756,31 @@ button.navds-stepper__step {
6060
6756
  .navds-table--small .navds-table__expanded-row-content {
6061
6757
  padding: var(--a-spacing-2) calc(var(--a-spacing-2) + 3rem);
6062
6758
  }
6759
+ @media (forced-colors: active) {
6760
+ .navds-date.navds-date button.rdp-day_selected {
6761
+ forced-color-adjust: none;
6762
+ background-color: highlight;
6763
+ color: highlighttext;
6764
+ box-shadow: none;
6765
+ }
6766
+
6767
+ .navds-date.navds-date button {
6768
+ color: buttontext;
6769
+ forced-color-adjust: none;
6770
+ outline: none;
6771
+ box-shadow: none;
6772
+ }
6773
+
6774
+ .navds-date button:focus-visible {
6775
+ color: buttontext;
6776
+ forced-color-adjust: none;
6777
+ outline: 2px solid highlight;
6778
+ }
6779
+
6780
+ .navds-date.navds-date button.rdp-day_disabled {
6781
+ color: GrayText;
6782
+ }
6783
+ }
6063
6784
  .navds-tabs__tablist-wrapper {
6064
6785
  box-shadow: inset 0 -1px 0 0 var(--ac-tabs-border, var(--a-border-divider));
6065
6786
  width: 100%;
@@ -6115,13 +6836,14 @@ button.navds-stepper__step {
6115
6836
  color: var(--ac-tabs-selected-text, var(--a-text-default));
6116
6837
  }
6117
6838
  .navds-tabs__tab:focus-visible {
6118
- outline: none;
6839
+ outline: 2px solid transparent;
6840
+ outline-offset: -2px;
6119
6841
  box-shadow: inset var(--a-shadow-focus);
6120
6842
  color: var(--ac-tabs-focus-text, var(--a-text-default));
6121
6843
  }
6122
6844
  @supports not selector(:focus-visible) {
6123
6845
  .navds-tabs__tab:focus {
6124
- outline: none;
6846
+ outline: 2px solid transparent;
6125
6847
  box-shadow: inset var(--a-shadow-focus);
6126
6848
  color: var(--ac-tabs-focus-text, var(--a-text-default));
6127
6849
  }
@@ -6159,15 +6881,30 @@ button.navds-stepper__step {
6159
6881
  font-size: 1.5rem;
6160
6882
  }
6161
6883
  .navds-tabs__tabpanel:focus-visible {
6162
- outline: none;
6884
+ outline: 2px solid transparent;
6163
6885
  box-shadow: inset 0 0 0 2px var(--a-border-focus);
6164
6886
  }
6165
6887
  @supports not selector(:focus-visible) {
6166
6888
  .navds-tabs__tabpanel:focus {
6167
- outline: none;
6889
+ outline: 2px solid transparent;
6168
6890
  box-shadow: inset 0 0 0 2px var(--a-border-focus);
6169
6891
  }
6170
6892
  }
6893
+ @media (forced-colors: active) {
6894
+ .navds-tabs__tab[aria-selected="true"] {
6895
+ border-bottom: 3px solid canvastext;
6896
+ padding-block-end: calc(var(--a-spacing-3) - 3px);
6897
+ }
6898
+
6899
+ .navds-tabs__tab--small[aria-selected="true"] {
6900
+ padding-block-end: calc(var(--a-spacing-1-alt) - 3px);
6901
+ }
6902
+
6903
+ .navds-tabs__tab-icon--top[aria-selected="true"],
6904
+ .navds-tabs__tab--small.navds-tabs__tab-icon--top[aria-selected="true"] {
6905
+ padding-block-end: calc(var(--a-spacing-1) - 3px);
6906
+ }
6907
+ }
6171
6908
  .navds-list ul,
6172
6909
  .navds-list ol {
6173
6910
  padding: 0;