@norges-domstoler/dds-components 16.0.0 → 16.2.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.
package/dist/index.css CHANGED
@@ -1,5 +1,4 @@
1
1
  @import "@norges-domstoler/dds-design-tokens/dist/css/ddsTokens.css";
2
- @import "@norges-domstoler/dds-design-tokens/dist/css/spacing.css";
3
2
 
4
3
  /* src/styles/dds-tokens.css */
5
4
 
@@ -593,14 +592,13 @@
593
592
  .Input_input-group {
594
593
  position: relative;
595
594
  }
596
- .Input_input {
595
+ :where(.Input_input) {
597
596
  position: relative;
598
- color: var(--dds-text-color--default);
597
+ color: var(--dds-color-text-default);
599
598
  border: 1px solid var(--dds-color-border-default);
600
599
  background-color: var(--dds-color-surface-default);
601
600
  padding: var(--dds-spacing-x0-75) var(--dds-spacing-x1) var(--dds-spacing-x0-75) var(--dds-spacing-x0-75);
602
601
  border-radius: var(--dds-border-radius-1);
603
- width: 100%;
604
602
  margin: 0;
605
603
  box-sizing: border-box;
606
604
  box-shadow: none;
@@ -622,49 +620,46 @@
622
620
  &[type=datetime-local] {
623
621
  -webkit-appearance: none;
624
622
  }
625
- &:hover:enabled:-moz-read-write:not(:focus-visible) {
623
+ &:hover:enabled:-moz-read-write:not(:focus-visible):not(.Input_disabled):not(.Input_read-only) {
626
624
  border-color: var(--dds-color-border-action-hover);
627
625
  box-shadow: 0 0 0 1px var(--dds-color-border-action-hover);
628
626
  }
629
- &:not(input):not(textarea):not(.Input_disabled):not(.Input_read-only):not(.Input_active):hover,
630
- &:hover:enabled:read-write:not(:focus-visible) {
627
+ &:hover:enabled:read-write:not(:focus-visible):not(.Input_disabled):not(.Input_read-only) {
631
628
  border-color: var(--dds-color-border-action-hover);
632
629
  box-shadow: 0 0 0 1px var(--dds-color-border-action-hover);
633
630
  }
634
- &.Input_input--stateful {
635
- -webkit-appearance: textfield;
636
- &:enabled:-moz-read-only {
637
- box-shadow: none;
638
- border: none;
639
- outline: none;
640
- cursor: default;
641
- background-color: transparent;
642
- padding-left: 0;
643
- padding-top: var(--dds-spacing-x0-125);
644
- }
645
- &:not(.Input_disabled).Input_read-only,
646
- &:enabled:read-only {
647
- box-shadow: none;
648
- border: none;
649
- outline: none;
650
- cursor: default;
651
- background-color: transparent;
652
- padding-left: 0;
653
- padding-top: var(--dds-spacing-x0-125);
654
- }
655
- &.Input_disabled,
656
- &:disabled {
657
- cursor: not-allowed;
658
- color: var(--dds-color-text-medium);
659
- background-color: var(--dds-color-surface-field-disabled);
660
- }
631
+ }
632
+ :where(.Input_input--stateful) {
633
+ -webkit-appearance: textfield;
634
+ &:enabled:-moz-read-only {
635
+ box-shadow: none;
636
+ border: 1px solid var(--dds-color-border-default);
637
+ background-color: var(--dds-color-surface-field-disabled);
638
+ color: var(--dds-color-text-medium);
639
+ cursor: default;
640
+ }
641
+ &:not(.Input_disabled).Input_read-only,
642
+ &:enabled:read-only {
643
+ box-shadow: none;
644
+ border: 1px solid var(--dds-color-border-default);
645
+ background-color: var(--dds-color-surface-field-disabled);
646
+ color: var(--dds-color-text-medium);
647
+ cursor: default;
648
+ }
649
+ &.Input_disabled,
650
+ &:disabled {
651
+ box-shadow: none;
652
+ border: 1px solid var(--dds-color-border-subtle);
653
+ background-color: var(--dds-color-surface-field-disabled);
654
+ color: var(--dds-color-text-subtle);
655
+ cursor: not-allowed;
661
656
  }
662
657
  }
663
- .Input_input--hover:hover {
658
+ :where(.Input_input--hover:hover) {
664
659
  border-color: var(--dds-color-border-action-hover);
665
660
  box-shadow: 0 0 0 1px var(--dds-color-border-action-hover);
666
661
  }
667
- .Input_input--stateful-danger {
662
+ :where(.Input_input--stateful-danger) {
668
663
  border-color: var(--dds-color-border-danger);
669
664
  box-shadow: 0 0 0 1px var(--dds-color-border-danger);
670
665
  &:hover:enabled:-moz-read-write:not(:focus-within) {
@@ -688,18 +683,24 @@
688
683
  border-color: 1px solid var(--dds-color-border-default);
689
684
  }
690
685
  }
691
- .Input_input--medium {
686
+ :where(.Input_input--medium) {
692
687
  padding: var(--dds-spacing-x0-75);
693
688
  }
694
- .Input_input--small {
689
+ :where(.Input_input--small) {
695
690
  padding: var(--dds-spacing-x0-5) var(--dds-spacing-x0-75);
696
691
  }
697
- .Input_input--tiny {
692
+ :where(.Input_input--tiny) {
698
693
  padding: var(--dds-spacing-x0-25) var(--dds-spacing-x0-5);
699
694
  }
700
- .Input_input--with-affix {
695
+ :where(.Input_input--with-affix) {
701
696
  gap: var(--dds-spacing-x1);
702
697
  }
698
+ :where(.Input_label) {
699
+ display: block;
700
+ }
701
+ :where(.Input_char-counter) {
702
+ margin-left: auto;
703
+ }
703
704
 
704
705
  /* src/components/Typography/Typography/TextOverflowEllipsis/TextOverflowEllipsis.module.css */
705
706
  .TextOverflowEllipsis_wrapper {
@@ -775,6 +776,18 @@
775
776
  flex-shrink: 0;
776
777
  }
777
778
 
779
+ /* src/components/Typography/Label/Label.module.css */
780
+ .Label_read-only {
781
+ display: flex;
782
+ }
783
+ .Label_read-only__icon {
784
+ align-self: center;
785
+ flex-shrink: 0;
786
+ margin-inline-end: var(--dds-spacing-x0-125);
787
+ width: 1.25em;
788
+ height: 1.25em;
789
+ }
790
+
778
791
  /* src/components/helpers/Paper/Paper.module.css */
779
792
  .Paper_container {
780
793
  box-sizing: border-box;
@@ -1045,6 +1058,7 @@
1045
1058
  overflow-y: auto;
1046
1059
  min-width: 180px;
1047
1060
  max-width: 300px;
1061
+ box-shadow: var(--dds-shadow-1-onlight);
1048
1062
  .OverflowMenu_divider {
1049
1063
  margin-block: var(--dds-spacing-x0-75);
1050
1064
  }
@@ -1269,29 +1283,21 @@
1269
1283
  }
1270
1284
 
1271
1285
  /* src/components/date-inputs/common/DateInput.module.css */
1272
- .DateInput_container--medium {
1273
- width: 160px;
1274
- }
1275
- .DateInput_container--small {
1276
- width: 148px;
1277
- }
1278
- .DateInput_container--tiny {
1279
- width: 125px;
1280
- }
1281
1286
  .DateInput_date-input {
1282
1287
  display: inline-flex;
1283
1288
  flex-direction: row;
1284
1289
  align-items: center;
1285
1290
  gap: var(--dds-spacing-x0-25);
1291
+ width: var(--dds-date-input-width);
1286
1292
  }
1287
1293
  .DateInput_date-input--medium {
1288
- padding-inline: var(--dds-spacing-x0-5) !important;
1294
+ padding-inline: var(--dds-spacing-x0-5);
1289
1295
  }
1290
1296
  .DateInput_date-input--small {
1291
- padding-inline: var(--dds-spacing-x0-5) !important;
1297
+ padding-inline: var(--dds-spacing-x0-5);
1292
1298
  }
1293
1299
  .DateInput_date-input--tiny {
1294
- padding-inline: var(--dds-spacing-x0-25) !important;
1300
+ padding-inline: var(--dds-spacing-x0-25);
1295
1301
  }
1296
1302
  .DateInput_date-segment-container {
1297
1303
  display: flex;
@@ -1304,7 +1310,7 @@
1304
1310
  width: max-content;
1305
1311
  font-variant-numeric: tabular-nums;
1306
1312
  outline: none;
1307
- &:focus:not([aria-readonly]) {
1313
+ &:focus {
1308
1314
  background-color: var(--dds-color-surface-action-selected);
1309
1315
  color: var(--dds-color-text-on-action);
1310
1316
  }
@@ -1314,7 +1320,7 @@
1314
1320
  width: 100%;
1315
1321
  font-variant-numeric: tabular-nums;
1316
1322
  pointer-events: none;
1317
- .DateInput_segment:focus:not([aria-readonly]) & {
1323
+ .DateInput_segment:focus & {
1318
1324
  color: var(--dds-color-text-on-action);
1319
1325
  }
1320
1326
  }
@@ -1329,7 +1335,13 @@
1329
1335
  justify-content: center;
1330
1336
  margin-inline: -1px 0;
1331
1337
  padding: var(--dds-spacing-x0-25);
1332
- color: var(--dds-color-text-default);
1338
+ color: var(--dds-color-icon-default);
1339
+ }
1340
+ .DateInput_icon-wrapper--disabled {
1341
+ color: var(--dds-color-icon-subtle);
1342
+ }
1343
+ .DateInput_icon-wrapper--readonly {
1344
+ color: var(--dds-color-icon-medium);
1333
1345
  }
1334
1346
  .DateInput_icon-wrapper--small {
1335
1347
  margin-block: calc(0px - var(--dds-icon-size-medium));
@@ -1356,6 +1368,9 @@
1356
1368
  color: var(--dds-color-text-subtle);
1357
1369
  }
1358
1370
  }
1371
+ .DateInput_popover-button--readonly:disabled {
1372
+ color: var(--dds-color-text-medium);
1373
+ }
1359
1374
  .DateInput_popover {
1360
1375
  z-index: 100;
1361
1376
  border-radius: var(--dds-border-radius-1);
@@ -1407,11 +1422,11 @@
1407
1422
  }
1408
1423
  .DateInput_calendar__cell-button--default {
1409
1424
  background-color: transparent;
1410
- color: var(--dds-text-color--default);
1425
+ color: var(--dds-color-text-default);
1411
1426
  &:hover {
1412
1427
  background-color: var(--dds-color-surface-hover-default);
1413
1428
  border-color: var(--dds-color-border-action-hover);
1414
- color: var(--dds-text-color--default);
1429
+ color: var(--dds-color-text-default);
1415
1430
  }
1416
1431
  }
1417
1432
  .DateInput_calendar__cell-button--selected {
@@ -1769,15 +1784,17 @@
1769
1784
  }
1770
1785
 
1771
1786
  /* src/components/TextArea/TextArea.module.css */
1772
- .TextArea_container {
1773
- width: var(--dds-input-default-width);
1774
- }
1775
1787
  .TextArea_textarea {
1788
+ width: var(--dds-text-area-width);
1776
1789
  height: auto;
1777
1790
  resize: vertical;
1778
1791
  vertical-align: bottom;
1779
1792
  padding-bottom: var(--dds-spacing-x0-5);
1780
1793
  }
1794
+ .TextArea_message-container {
1795
+ display: flex;
1796
+ justify-content: space-between;
1797
+ }
1781
1798
 
1782
1799
  /* src/components/Tooltip/Tooltip.module.css */
1783
1800
  .Tooltip_container {
@@ -1820,7 +1837,8 @@
1820
1837
  gap: var(--dds-spacing-x1);
1821
1838
  border-color: var(--dds-color-border-default);
1822
1839
  background-color: var(--dds-color-surface-default);
1823
- padding: var(--dds-spacing-x1-5) var(--dds-spacing-x1-5) var(--dds-spacing-x1) var(--dds-spacing-x1-5);
1840
+ border-radius: var(--dds-border-radius-1);
1841
+ padding: var(--dds-spacing-x1-5) var(--dds-spacing-x1-5) var(--dds-spacing-x2) var(--dds-spacing-x1-5);
1824
1842
  @media (prefers-reduced-motion: no-preference) {
1825
1843
  transition: background-color 0.2s, border-color 0.2s;
1826
1844
  }
@@ -1843,12 +1861,22 @@
1843
1861
  padding: var(--dds-spacing-x0-5) var(--dds-spacing-x1);
1844
1862
  margin-top: var(--dds-spacing-x0-5);
1845
1863
  background-color: var(--dds-color-surface-subtle);
1864
+ border-radius: var(--dds-border-radius-1);
1865
+ border: 1px solid var(--dds-color-border-default);
1846
1866
  }
1847
1867
  .FileUploader_file--invalid {
1848
- box-shadow: inset 0 0 0 2px var(--dds-color-border-danger);
1868
+ border: 1px solid var(--dds-color-border-danger);
1869
+ box-shadow: inset 0 0 0 1px var(--dds-color-border-danger);
1870
+ }
1871
+ .FileUploader_file__icon--invalid {
1872
+ color: var(--dds-color-icon-on-danger-default);
1873
+ }
1874
+ .FileUploader_file__icon--valid {
1875
+ color: var(--dds-color-icon-on-success-default);
1849
1876
  }
1850
1877
  .FileUploader_file__name {
1851
1878
  word-break: break-all;
1879
+ width: 100%;
1852
1880
  }
1853
1881
 
1854
1882
  /* src/components/GlobalMessage/GlobalMessage.module.css */
@@ -2331,6 +2359,9 @@
2331
2359
  .Select_container--disabled {
2332
2360
  cursor: not-allowed;
2333
2361
  }
2362
+ .Select_container--readonly {
2363
+ cursor: default;
2364
+ }
2334
2365
  .Select_inner-single-value {
2335
2366
  overflow: hidden;
2336
2367
  text-overflow: ellipsis;
@@ -2343,17 +2374,95 @@
2343
2374
  margin-left: -1px;
2344
2375
  }
2345
2376
  .Select_control {
2346
- &:hover .Select_dropdown-indicator,
2377
+ &:hover:not(.Select_control--readonly) .Select_dropdown-indicator,
2347
2378
  &:focus-within .Select_dropdown-indicator {
2348
2379
  color: var(--dds-color-icon-action-hover);
2349
2380
  }
2350
- &.Select_control--readonly .Select_dropdown-indicator {
2351
- color: transparent;
2381
+ }
2382
+ .Select_control--readonly .Select_dropdown-indicator {
2383
+ pointer-events: none;
2384
+ }
2385
+ .Select_control--disabled .Select_dropdown-indicator {
2386
+ pointer-events: none;
2387
+ }
2388
+
2389
+ /* src/components/Select/NativeSelect/NativeSelect.module.css */
2390
+ .NativeSelect_container {
2391
+ position: relative;
2392
+ width: -moz-fit-content;
2393
+ width: fit-content;
2394
+ }
2395
+ .NativeSelect_select {
2396
+ -webkit-appearance: none;
2397
+ -moz-appearance: none;
2398
+ appearance: none;
2399
+ width: var(--dds-native-select-width);
2400
+ text-overflow: ellipsis;
2401
+ &:hover:not(:disabled):not(.NativeSelect_select--readonly) {
2402
+ border-color: var(--dds-color-border-action-hover);
2403
+ box-shadow: 0 0 0 1px var(--dds-color-border-action-hover);
2404
+ & + svg {
2405
+ color: var(--dds-color-icon-action-hover);
2406
+ }
2407
+ }
2408
+ &:disabled {
2409
+ cursor: not-allowed;
2410
+ color: var(--dds-color-text-subtle);
2411
+ background-color: var(--dds-color-surface-field-disabled);
2412
+ border-color: var(--dds-color-border-subtle);
2413
+ + svg {
2414
+ color: var(--dds-color-icon-subtle);
2415
+ }
2416
+ }
2417
+ option {
2418
+ background-color: var(--dds-color-surface-default);
2419
+ &:hover {
2420
+ background-color: var(--dds-color-surface-hover-default);
2421
+ }
2422
+ @media (prefers-reduced-motion: no-preference) {
2423
+ transition: background-color 0.2s;
2424
+ }
2425
+ }
2426
+ optgroup {
2427
+ font-weight: normal;
2428
+ font-style: normal;
2429
+ }
2430
+ }
2431
+ .NativeSelect_select--readonly {
2432
+ box-shadow: none;
2433
+ outline: none;
2434
+ cursor: default;
2435
+ color: var(--dds-color-text-subtle);
2436
+ background-color: var(--dds-color-surface-field-disabled);
2437
+ + svg {
2438
+ color: var(--dds-color-icon-subtle);
2352
2439
  }
2353
- &.Select_control--disabled .Select_dropdown-indicator {
2354
- color: transparent;
2440
+ }
2441
+ .NativeSelect_select--medium {
2442
+ height: calc(1.5em + var(--dds-spacing-x0-75) + var(--dds-spacing-x0-75) + 2px);
2443
+ padding-right: var(--dds-spacing-x2);
2444
+ }
2445
+ .NativeSelect_select--small {
2446
+ height: calc(1.5em + var(--dds-spacing-x0-5) + var(--dds-spacing-x0-5) + 2px);
2447
+ padding-right: var(--dds-spacing-x2);
2448
+ }
2449
+ .NativeSelect_select--tiny {
2450
+ height: calc(1.5em + var(--dds-spacing-x0-25) + var(--dds-spacing-x0-25) + 2px);
2451
+ padding-right: var(--dds-spacing-x1);
2452
+ }
2453
+ .NativeSelect_select--multiple {
2454
+ padding-right: 0;
2455
+ &.NativeSelect_select--readonly option {
2456
+ background-color: var(--dds-color-surface-field-disabled);
2355
2457
  }
2356
2458
  }
2459
+ .NativeSelect_icon {
2460
+ position: absolute;
2461
+ top: 50%;
2462
+ transform: translate(-150%, -50%);
2463
+ align-self: center;
2464
+ pointer-events: none;
2465
+ }
2357
2466
 
2358
2467
  /* src/components/Popover/Popover.module.css */
2359
2468
  .Popover_container {
@@ -2516,7 +2625,8 @@
2516
2625
  gap: var(--dds-spacing-x0-5);
2517
2626
  }
2518
2627
  .Search_input {
2519
- padding-right: var(--dds-spacing-x0-25);
2628
+ width: 100%;
2629
+ padding-right: calc(var(--dds-spacing-x1) + var(--dds-icon-size-medium) + var(--dds-spacing-x0-25));
2520
2630
  &[type=search]::-webkit-search-decoration,
2521
2631
  &[type=search]::-webkit-search-cancel-button,
2522
2632
  &[type=search]::-webkit-search-results-button,
@@ -2525,18 +2635,15 @@
2525
2635
  }
2526
2636
  }
2527
2637
  .Search_input--small {
2528
- padding-top: var(--dds-spacing-x0-5);
2529
- padding-bottom: var(--dds-spacing-x0-5);
2638
+ padding-block: var(--dds-spacing-x0-5);
2530
2639
  padding-left: calc(var(--dds-spacing-x0-75) + var(--dds-icon-size-small) + var(--dds-spacing-x0-5));
2531
2640
  }
2532
2641
  .Search_input--medium {
2533
- padding-top: var(--dds-spacing-x0-75);
2534
- padding-bottom: var(--dds-spacing-x0-75);
2642
+ padding-block: var(--dds-spacing-x0-75);
2535
2643
  padding-left: calc(var(--dds-spacing-x0-75) + var(--dds-icon-size-medium) + var(--dds-spacing-x0-5));
2536
2644
  }
2537
2645
  .Search_input--large {
2538
- padding-top: var(--dds-spacing-x1);
2539
- padding-bottom: var(--dds-spacing-x1);
2646
+ padding-block: var(--dds-spacing-x1);
2540
2647
  padding-left: calc(var(--dds-spacing-x0-75) + var(--dds-icon-size-medium) + var(--dds-spacing-x0-5));
2541
2648
  }
2542
2649
  .Search_search-icon {
@@ -2551,7 +2658,7 @@
2551
2658
  position: absolute;
2552
2659
  top: 50%;
2553
2660
  transform: translate(0, -50%);
2554
- right: var(--dds-spacing-x0-75);
2661
+ right: var(--dds-spacing-x1);
2555
2662
  width: var(--dds-icon-size-medium);
2556
2663
  height: var(--dds-icon-size-medium);
2557
2664
  }
@@ -2605,7 +2712,7 @@
2605
2712
  var(--dds-focus-transition);
2606
2713
  }
2607
2714
  }
2608
- &:hover input:enabled:not(:checked) ~ .SelectionControl_selection-control {
2715
+ &:hover:not(.SelectionControl_label--readonly) input:enabled:not(:checked) ~ .SelectionControl_selection-control {
2609
2716
  background-color: var(--dds-color-surface-hover-default);
2610
2717
  box-shadow: inset 0 0 0 1px var(--dds-color-border-action-hover);
2611
2718
  border-color: var(--dds-color-border-action-hover);
@@ -2615,8 +2722,13 @@
2615
2722
  border-color: var(--dds-color-surface-action-selected);
2616
2723
  background-color: var(--dds-color-surface-action-selected);
2617
2724
  }
2618
- &:hover input:checked:enabled[type=checkbox] ~ .SelectionControl_selection-control,
2619
- &:hover input:enabled[data-indeterminate=true] ~ .SelectionControl_selection-control {
2725
+ &.SelectionControl_label--readonly input:checked:enabled ~ .SelectionControl_selection-control,
2726
+ &.SelectionControl_label--readonly input:enabled[data-indeterminate=true] ~ .SelectionControl_selection-control {
2727
+ border-color: var(--dds-color-surface-action-selected-disabled);
2728
+ background-color: var(--dds-color-surface-action-selected-disabled);
2729
+ }
2730
+ &:hover:not(.SelectionControl_label--readonly) input:checked:enabled[type=checkbox] ~ .SelectionControl_selection-control,
2731
+ &:hover:not(.SelectionControl_label--readonly) input:enabled[data-indeterminate=true] ~ .SelectionControl_selection-control {
2620
2732
  background-color: var(--dds-color-surface-action-hover);
2621
2733
  border-color: var(--dds-color-surface-action-hover);
2622
2734
  }
@@ -2668,6 +2780,7 @@
2668
2780
  }
2669
2781
  .SelectionControl_label--readonly {
2670
2782
  cursor: default;
2783
+ color: var(--dds-color-text-medium);
2671
2784
  input ~ .SelectionControl_selection-control {
2672
2785
  border-color: var(--dds-color-border-default);
2673
2786
  background-color: var(--dds-color-surface-field-disabled);
@@ -3047,8 +3160,14 @@
3047
3160
  }
3048
3161
 
3049
3162
  /* src/components/TextInput/TextInput.module.css */
3050
- .TextInput_container--medium {
3051
- width: var(--dds-input-default-width);
3163
+ .TextInput_container {
3164
+ color: var(--dds-color-text-default);
3165
+ }
3166
+ .TextInput_container--readonly {
3167
+ color: var(--dds-color-text-medium);
3168
+ }
3169
+ .TextInput_container--disabled {
3170
+ color: var(--dds-color-text-subtle);
3052
3171
  }
3053
3172
  .TextInput_container--tiny {
3054
3173
  width: 210px;
@@ -3058,6 +3177,9 @@
3058
3177
  display: flex;
3059
3178
  align-items: center;
3060
3179
  }
3180
+ .TextInput_input-width {
3181
+ width: var(--dds-textinput-width);
3182
+ }
3061
3183
  .TextInput_input {
3062
3184
  &.TextInput_with-icon--medium {
3063
3185
  padding-left: calc(var(--dds-spacing-x0-75) + var(--dds-icon-size-medium) + var(--dds-spacing-x0-5));
@@ -3069,10 +3191,12 @@
3069
3191
  padding-left: calc(var(--dds-spacing-x0-5) + var(--dds-icon-size-medium) + var(--dds-spacing-x0-25));
3070
3192
  }
3071
3193
  }
3194
+ .TextInput_input--extended {
3195
+ width: 100%;
3196
+ }
3072
3197
  .TextInput_icon {
3073
3198
  position: absolute;
3074
3199
  z-index: 1;
3075
- color: var(--dds-color-icon-default);
3076
3200
  }
3077
3201
  .TextInput_icon--medium {
3078
3202
  left: var(--dds-spacing-x0-75);
@@ -3086,6 +3210,9 @@
3086
3210
  left: var(--dds-spacing-x0-5);
3087
3211
  top: calc(50% - (var(--dds-icon-size-small) / 2));
3088
3212
  }
3213
+ .TextInput_label {
3214
+ display: block;
3215
+ }
3089
3216
  .TextInput_affix {
3090
3217
  position: absolute;
3091
3218
  height: 100%;
@@ -3095,35 +3222,26 @@
3095
3222
  align-items: center;
3096
3223
  pointer-events: none;
3097
3224
  z-index: 1;
3098
- &.TextInput_prefix {
3099
- left: 0;
3100
- margin-left: 8px;
3101
- padding-right: 8px;
3102
- border-right: 1px solid var(--dds-color-border-default);
3103
- }
3104
- &.TextInput_suffix {
3105
- right: 0;
3106
- margin-right: 8px;
3107
- padding-left: 8px;
3108
- border-left: 1px solid var(--dds-color-border-default);
3109
- }
3110
- &.TextInput_prefix--readonly {
3111
- margin-left: 0;
3112
- padding-right: 0.5ch;
3113
- border-right: none;
3114
- }
3115
- &.TextInput_suffix--readonly {
3116
- margin-right: 0;
3117
- padding-left: 0.5ch;
3118
- border-left: none;
3119
- }
3225
+ }
3226
+ .TextInput_prefix {
3227
+ left: 0;
3228
+ margin-left: 8px;
3229
+ padding-right: 8px;
3230
+ border-right: 1px solid var(--dds-color-border-default);
3231
+ }
3232
+ .TextInput_suffix {
3233
+ right: 0;
3234
+ margin-right: 8px;
3235
+ padding-left: 8px;
3236
+ border-left: 1px solid var(--dds-color-border-default);
3237
+ }
3238
+ .TextInput_affix--disabled {
3239
+ border-color: var(--dds-color-border-subtle);
3120
3240
  }
3121
3241
  .TextInput_message-container {
3122
3242
  display: flex;
3123
3243
  justify-content: space-between;
3124
- }
3125
- .TextInput_char-counter {
3126
- margin-left: auto;
3244
+ gap: var(--dds-spacing-x0-5);
3127
3245
  }
3128
3246
 
3129
3247
  /* src/components/ToggleBar/ToggleBar.module.css */