@deephaven/components 0.57.2-beta.1 → 0.58.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 (110) hide show
  1. package/css/BaseStyleSheet.css +189 -215
  2. package/css/BaseStyleSheet.css.map +1 -1
  3. package/dist/AutoCompleteInput.css +2 -2
  4. package/dist/AutoCompleteInput.css.map +1 -1
  5. package/dist/AutoResizeTextarea.css +1 -1
  6. package/dist/BasicModal.js +0 -1
  7. package/dist/BasicModal.js.map +1 -1
  8. package/dist/Button.d.ts.map +1 -1
  9. package/dist/Button.js +4 -3
  10. package/dist/Button.js.map +1 -1
  11. package/dist/ComboBox.css +15 -1
  12. package/dist/ComboBox.css.map +1 -1
  13. package/dist/ComboBox.d.ts.map +1 -1
  14. package/dist/ComboBox.js +2 -0
  15. package/dist/ComboBox.js.map +1 -1
  16. package/dist/CopyButton.d.ts +3 -1
  17. package/dist/CopyButton.d.ts.map +1 -1
  18. package/dist/CopyButton.js +2 -0
  19. package/dist/CopyButton.js.map +1 -1
  20. package/dist/CustomTimeSelect.css +2 -2
  21. package/dist/CustomTimeSelect.css.map +1 -1
  22. package/dist/DraggableItemList.css +6 -6
  23. package/dist/DraggableItemList.css.map +1 -1
  24. package/dist/HierarchicalCheckboxMenu.css +1 -1
  25. package/dist/HierarchicalCheckboxMenu.css.map +1 -1
  26. package/dist/ItemList.css.map +1 -1
  27. package/dist/ItemListItem.css +1 -0
  28. package/dist/ItemListItem.css.map +1 -1
  29. package/dist/MaskedInput.css.map +1 -1
  30. package/dist/SelectValueList.css +1 -1
  31. package/dist/SelectValueList.css.map +1 -1
  32. package/dist/SocketedButton.css +19 -19
  33. package/dist/SocketedButton.css.map +1 -1
  34. package/dist/ThemeExport.module.css.map +1 -1
  35. package/dist/TimeSlider.css +2 -2
  36. package/dist/TimeSlider.css.map +1 -1
  37. package/dist/TimeSlider.module.css +2 -2
  38. package/dist/TimeSlider.module.css.map +1 -1
  39. package/dist/ToastNotification.css.map +1 -1
  40. package/dist/UISwitch.css +2 -0
  41. package/dist/UISwitch.css.map +1 -1
  42. package/dist/context-actions/ContextActionUtils.d.ts +1 -0
  43. package/dist/context-actions/ContextActionUtils.d.ts.map +1 -1
  44. package/dist/context-actions/ContextActionUtils.js.map +1 -1
  45. package/dist/context-actions/ContextActions.css +14 -14
  46. package/dist/context-actions/ContextActions.css.map +1 -1
  47. package/dist/context-actions/ContextMenuItem.d.ts.map +1 -1
  48. package/dist/context-actions/ContextMenuItem.js +2 -2
  49. package/dist/context-actions/ContextMenuItem.js.map +1 -1
  50. package/dist/menu-actions/DropdownMenu.css +2 -2
  51. package/dist/menu-actions/DropdownMenu.css.map +1 -1
  52. package/dist/modal/Modal.d.ts.map +1 -1
  53. package/dist/modal/Modal.js +1 -1
  54. package/dist/modal/Modal.js.map +1 -1
  55. package/dist/navigation/MenuItem.css +7 -2
  56. package/dist/navigation/MenuItem.css.map +1 -1
  57. package/dist/navigation/Page.css +0 -6
  58. package/dist/navigation/Page.css.map +1 -1
  59. package/dist/navigation/Page.js +2 -2
  60. package/dist/navigation/Page.js.map +1 -1
  61. package/dist/navigation/Stack.css.map +1 -1
  62. package/dist/popper/Popper.css +8 -3
  63. package/dist/popper/Popper.css.map +1 -1
  64. package/dist/popper/Tooltip.js +1 -1
  65. package/dist/popper/Tooltip.js.map +1 -1
  66. package/dist/theme/Logo.css +1 -0
  67. package/dist/theme/Logo.css.map +1 -0
  68. package/dist/theme/Logo.d.ts +9 -0
  69. package/dist/theme/Logo.d.ts.map +1 -0
  70. package/dist/theme/Logo.js +15 -0
  71. package/dist/theme/Logo.js.map +1 -0
  72. package/dist/theme/ThemeUtils.d.ts.map +1 -1
  73. package/dist/theme/ThemeUtils.js +8 -8
  74. package/dist/theme/ThemeUtils.js.map +1 -1
  75. package/dist/theme/index.d.ts +1 -0
  76. package/dist/theme/index.d.ts.map +1 -1
  77. package/dist/theme/index.js +1 -0
  78. package/dist/theme/index.js.map +1 -1
  79. package/dist/theme/theme-dark/theme-dark-components.css +1 -1
  80. package/dist/theme/theme-dark/theme-dark-components.css.map +1 -1
  81. package/dist/theme/theme-dark/theme-dark-semantic-editor.css +1 -1
  82. package/dist/theme/theme-dark/theme-dark-semantic-editor.css.map +1 -1
  83. package/dist/theme/theme-dark/theme-dark-semantic-grid.css +1 -1
  84. package/dist/theme/theme-dark/theme-dark-semantic-grid.css.map +1 -1
  85. package/dist/theme/theme-dark/theme-dark-semantic.css +1 -1
  86. package/dist/theme/theme-dark/theme-dark-semantic.css.map +1 -1
  87. package/dist/theme/theme-light/index.d.ts +2 -0
  88. package/dist/theme/theme-light/index.d.ts.map +1 -1
  89. package/dist/theme/theme-light/index.js +8 -1
  90. package/dist/theme/theme-light/index.js.map +1 -1
  91. package/dist/theme/theme-light/theme-light-components.css +1 -0
  92. package/dist/theme/theme-light/theme-light-components.css.map +1 -0
  93. package/dist/theme/theme-light/theme-light-palette.css +1 -1
  94. package/dist/theme/theme-light/theme-light-palette.css.map +1 -1
  95. package/dist/theme/theme-light/theme-light-semantic-chart.css +1 -0
  96. package/dist/theme/theme-light/theme-light-semantic-chart.css.map +1 -0
  97. package/dist/theme/theme-light/theme-light-semantic-editor.css +1 -0
  98. package/dist/theme/theme-light/theme-light-semantic-editor.css.map +1 -0
  99. package/dist/theme/theme-light/theme-light-semantic-grid.css +1 -0
  100. package/dist/theme/theme-light/theme-light-semantic-grid.css.map +1 -0
  101. package/dist/theme/theme-light/theme-light-semantic.css +1 -0
  102. package/dist/theme/theme-light/theme-light-semantic.css.map +1 -0
  103. package/dist/theme/theme-spectrum/theme-spectrum-alias.module.css +1 -1
  104. package/dist/theme/theme-spectrum/theme-spectrum-alias.module.css.map +1 -1
  105. package/dist/theme/theme-spectrum/theme-spectrum-overrides.css +1 -1
  106. package/dist/theme/theme-spectrum/theme-spectrum-overrides.css.map +1 -1
  107. package/package.json +7 -7
  108. package/scss/BaseStyleSheet.scss +104 -144
  109. package/scss/bootstrap_override_mixins_buttons.scss +7 -4
  110. package/scss/bootstrap_overrides.scss +34 -14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/components",
3
- "version": "0.57.2-beta.1+73e0b658",
3
+ "version": "0.58.0",
4
4
  "description": "Deephaven React component library",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "Apache-2.0",
@@ -25,10 +25,10 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@adobe/react-spectrum": "^3.29.0",
28
- "@deephaven/icons": "^0.57.2-beta.1+73e0b658",
29
- "@deephaven/log": "^0.57.2-beta.1+73e0b658",
30
- "@deephaven/react-hooks": "^0.57.2-beta.1+73e0b658",
31
- "@deephaven/utils": "^0.57.2-beta.1+73e0b658",
28
+ "@deephaven/icons": "^0.58.0",
29
+ "@deephaven/log": "^0.58.0",
30
+ "@deephaven/react-hooks": "^0.58.0",
31
+ "@deephaven/utils": "^0.58.0",
32
32
  "@fortawesome/fontawesome-svg-core": "^6.2.1",
33
33
  "@fortawesome/react-fontawesome": "^0.2.0",
34
34
  "@react-spectrum/theme-default": "^3.5.1",
@@ -52,7 +52,7 @@
52
52
  "react-dom": "^17.x"
53
53
  },
54
54
  "devDependencies": {
55
- "@deephaven/mocks": "^0.57.2-beta.1+73e0b658"
55
+ "@deephaven/mocks": "^0.58.0"
56
56
  },
57
57
  "files": [
58
58
  "dist",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "73e0b658edffc7ef89b3b786f3fe30c0e64c96f9"
68
+ "gitHead": "a25095e03076d51780ca8ee2f8dff034d0a6d67f"
69
69
  }
@@ -9,7 +9,8 @@
9
9
 
10
10
  color: var(--dh-color-text);
11
11
 
12
- .spectrum-theme-provider {
12
+ .spectrum-theme-provider,
13
+ [class^='spectrum_'] {
13
14
  color: var(--dh-color-text);
14
15
  }
15
16
  }
@@ -66,10 +67,6 @@ body {
66
67
  bottom: 0;
67
68
  }
68
69
 
69
- hr {
70
- background-color: $gray-400;
71
- }
72
-
73
70
  .scroll-pane,
74
71
  .scroll-pane-x,
75
72
  .scroll-pane-y {
@@ -126,6 +123,19 @@ button:focus {
126
123
  min-width: 7rem;
127
124
  // Matching Spectrum styles
128
125
  -webkit-font-smoothing: antialiased;
126
+ // the following is to match spectrum buttons
127
+ height: 32px;
128
+ // vertical-align: top;
129
+ display: inline-flex;
130
+ align-items: center;
131
+ justify-content: center;
132
+ padding-top: 3px;
133
+ padding-bottom: 5px;
134
+ }
135
+
136
+ .btn-sm {
137
+ height: 28px;
138
+ line-height: 28px;
129
139
  }
130
140
 
131
141
  span.btn-disabled-wrapper {
@@ -136,6 +146,18 @@ span.btn-disabled-wrapper {
136
146
  }
137
147
  }
138
148
 
149
+ // We use disabled success buttons as success messages in a few places.
150
+ // We should stop doing that, and phase them out when we have toasts.
151
+ .btn-success {
152
+ &.disabled,
153
+ &:disabled {
154
+ --dh-color-text-disabled: var(--dh-color-positive-contrast);
155
+ --dh-color-disabled-bg: var(--dh-color-positive-bg);
156
+
157
+ opacity: 0.5;
158
+ }
159
+ }
160
+
139
161
  .btn-link {
140
162
  min-width: unset;
141
163
  padding: $spacer-1;
@@ -258,17 +280,22 @@ span.btn-disabled-wrapper {
258
280
  }
259
281
 
260
282
  .btn-icon {
283
+ // used in chart builder and conditional formatting
261
284
  text-align: center;
262
285
  padding: 0;
263
286
  min-width: 0;
264
287
  font-size: small;
265
288
  text-overflow: ellipsis;
266
289
  border-radius: 0;
290
+ height: auto;
291
+ flex-direction: column;
292
+ gap: 3px;
293
+ color: var(--dh-color-text);
267
294
 
268
295
  svg,
269
296
  img {
270
297
  display: block;
271
- background: $gray-500;
298
+ background: var(--dh-color-action-bg);
272
299
  margin: auto;
273
300
  border-radius: 2px;
274
301
  margin-bottom: 2px;
@@ -282,9 +309,10 @@ span.btn-disabled-wrapper {
282
309
  &:hover,
283
310
  &:focus,
284
311
  &.active {
312
+ color: var(--dh-color-text);
285
313
  svg,
286
314
  img {
287
- box-shadow: 0 0 0 2px $input-border-color;
315
+ box-shadow: 0 0 0 2px var(--dh-color-action-hover-border);
288
316
  filter: saturate(100%);
289
317
  }
290
318
  }
@@ -297,15 +325,14 @@ span.btn-disabled-wrapper {
297
325
 
298
326
  svg,
299
327
  img {
300
- box-shadow: 0 0 0 2px $input-focus-border-color;
328
+ box-shadow: 0 0 0 2px var(--dh-color-action-active-border);
301
329
  }
302
330
  }
303
331
  }
304
332
 
305
333
  .btn-inline {
306
334
  min-width: 2.75rem;
307
- padding-left: $spacer-1;
308
- padding-right: $spacer-1;
335
+ padding: 0 $spacer-1;
309
336
  border-radius: $border-radius;
310
337
  background: var(--dh-color-action-bg);
311
338
  border: 1px solid var(--dh-color-action-border);
@@ -333,6 +360,7 @@ span.btn-disabled-wrapper {
333
360
  background-color: var(--dh-color-action-disabled-bg);
334
361
  border: 1px solid var(--dh-color-action-disabled-border);
335
362
  color: var(--dh-color-action-disabled-fg);
363
+ opacity: 1;
336
364
  cursor: not-allowed;
337
365
  }
338
366
 
@@ -405,8 +433,10 @@ form label small {
405
433
  color: $gray-400;
406
434
  }
407
435
 
408
- .form-control.focus {
409
- border: 1px solid $primary;
436
+ .form-control.focus,
437
+ .form-control:focus {
438
+ border: 1px solid var(--dh-color-input-focus-border);
439
+ box-shadow: none;
410
440
  }
411
441
 
412
442
  .form-control.is-invalid,
@@ -423,9 +453,12 @@ form label small {
423
453
  }
424
454
 
425
455
  .form-control:disabled {
426
- border-color: $black;
427
- color: $gray-500;
428
- cursor: not-allowed;
456
+ border-color: var(--dh-color-input-disabled-border);
457
+ color: var(--dh-color-input-disabled-fg);
458
+ }
459
+
460
+ .form-control:hover:not(:focus):not(:disabled) {
461
+ border-color: var(--dh-color-input-hover-border);
429
462
  }
430
463
 
431
464
  .form-control:disabled::placeholder {
@@ -441,41 +474,53 @@ form label small {
441
474
  user-select: none; //checkboxs are label pseudo elements, clicking can toggle text selection otherwise
442
475
  }
443
476
 
444
- .custom-control-label::before {
445
- border: 1px solid $gray-400;
446
- top: 0.24rem;
447
- }
448
-
449
- .custom-control-label::after {
450
- top: 0.24rem;
451
- }
452
-
453
- .custom-control-input:active ~ .custom-control-label::before {
454
- background-color: $primary-dark;
455
- }
456
-
457
- .custom-control-input:focus ~ .custom-control-label::before {
458
- box-shadow: $input-btn-focus-box-shadow;
459
- border-color: $input-focus-border-color;
460
- }
461
-
462
477
  .custom-control-input:disabled ~ .custom-control-label::before {
463
- background-color: $gray-500;
464
- border: 1px solid $black;
465
478
  cursor: not-allowed;
466
479
  }
467
480
 
468
- .custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
469
- border: 1px solid $primary;
470
- }
471
-
472
481
  .custom-checkbox
473
482
  .custom-control-input:disabled
474
483
  ~ .custom-control-label::before {
475
- border-color: $black;
476
484
  cursor: not-allowed;
477
485
  }
478
486
 
487
+ .custom-radio {
488
+ .custom-control-input:checked ~ .custom-control-label {
489
+ &::after {
490
+ mask: escape-svg($custom-radio-indicator-icon-checked) 4px / 6px 6px
491
+ no-repeat;
492
+ background: var(--dh-color-input-bg);
493
+ }
494
+ }
495
+ }
496
+
497
+ .custom-checkbox {
498
+ .custom-control-input:checked ~ .custom-control-label {
499
+ &::after {
500
+ mask: escape-svg($custom-checkbox-indicator-icon-checked) 50%/75% 75%
501
+ no-repeat;
502
+ background: var(--dh-color-input-bg);
503
+ }
504
+ }
505
+
506
+ .custom-control-input:indeterminate ~ .custom-control-label {
507
+ &::after {
508
+ mask: escape-svg($custom-checkbox-indicator-icon-indeterminate) 50%/65%
509
+ 65% no-repeat;
510
+ background: var(--dh-color-input-bg);
511
+ }
512
+ }
513
+
514
+ .custom-control-input:disabled {
515
+ &:checked ~ .custom-control-label::before {
516
+ border: var(--dh-color-input-disabled-fg);
517
+ }
518
+ &:indeterminate ~ .custom-control-label::before {
519
+ border: var(--dh-color-input-disabled-fg);
520
+ }
521
+ }
522
+ }
523
+
479
524
  .custom-select {
480
525
  $caret-size: 10px 6px;
481
526
  $error-size: 16px;
@@ -483,8 +528,8 @@ form label small {
483
528
  background-image: var(--dh-svg-icon-select-indicator);
484
529
  background-size: $caret-size;
485
530
 
486
- &:hover {
487
- background-image: var(--dh-svg-icon-select-indicator-hover);
531
+ &:focus {
532
+ box-shadow: none;
488
533
  }
489
534
 
490
535
  &.is-invalid,
@@ -504,15 +549,23 @@ form label small {
504
549
  }
505
550
 
506
551
  .custom-select:disabled {
507
- border-color: $black;
508
- cursor: not-allowed;
552
+ color: var(--dh-color-text-disabled);
553
+ background-color: var(--dh-color-input-disabled-bg);
554
+ border-color: var(--dh-color-input-disabled-border);
509
555
  background-image: var(--dh-svg-icon-select-indicator-disabled);
556
+ opacity: 1;
510
557
  &.is-invalid {
511
558
  background-image: var(--dh-svg-icon-select-indicator-disabled),
512
559
  var(--dh-svg-icon-error);
513
560
  }
514
561
  }
515
562
 
563
+ .custom-select:hover:not(:disabled) {
564
+ background-color: var(--dh-color-selector-hover-bg);
565
+ background-image: var(--dh-svg-icon-select-indicator-hover);
566
+ border-color: var(--dh-color-input-hover-border);
567
+ }
568
+
516
569
  input[type='number'] {
517
570
  -moz-appearance: textfield;
518
571
  appearance: textfield;
@@ -539,14 +592,17 @@ input[type='number']::-webkit-inner-spin-button {
539
592
  }
540
593
 
541
594
  .input-group > .input-group-append.cb-dropdown > .btn {
542
- border: 1px solid $gray-400;
595
+ border: 1px solid $input-border-color;
543
596
 
544
597
  &:focus {
545
598
  border-color: $input-focus-border-color;
546
599
  }
547
600
  &:disabled {
548
- border-color: $background;
549
- cursor: not-allowed;
601
+ background-color: $input-disabled-bg;
602
+ border-color: var(--dh-color-input-disabled-border);
603
+ .cb-caret {
604
+ background-color: var(--dh-color-icon-disabled-fg);
605
+ }
550
606
  }
551
607
  }
552
608
  /* stylelint-enable no-descending-specificity */
@@ -566,86 +622,8 @@ input[type='number']::-webkit-inner-spin-button {
566
622
  }
567
623
 
568
624
  /********** Modal Styling *********/
569
- .modal-dialog.theme-bg-light {
570
- .modal-content {
571
- color: $black;
572
- background: $gray-100;
573
- }
574
-
575
- .form-control {
576
- background: $gray-200;
577
- color: $black;
578
- }
579
-
580
- .custom-checkbox {
581
- .custom-control-label::before {
582
- background-color: $gray-100;
583
- }
584
-
585
- .custom-control-input:checked ~ .custom-control-label::before {
586
- background-color: $primary;
587
- }
588
-
589
- .custom-control-input:active ~ .custom-control-label::before {
590
- background-color: $primary-light;
591
- border-color: $primary;
592
- }
593
- .custom-control-input:disabled ~ .custom-control-label::before {
594
- border-color: $black;
595
- background-color: $gray-300;
596
- cursor: not-allowed;
597
- }
598
- }
599
-
600
- .custom-select {
601
- background-color: $gray-200;
602
- color: $black;
603
- }
604
-
605
- .modal-header {
606
- border-bottom-color: transparent;
607
- .close {
608
- outline: 0;
609
- }
610
- }
611
-
612
- .modal-footer {
613
- border-top-color: transparent;
614
- }
615
625
 
616
- .btn-link {
617
- color: $gray-700;
618
- &:hover {
619
- color: $black;
620
- }
621
- }
622
-
623
- .btn-outline-secondary {
624
- color: $gray-300;
625
- background-color: transparent;
626
- background-image: none;
627
- border-color: $gray-300;
628
- &:focus,
629
- &.focus {
630
- box-shadow: 0 0 0 0.2rem background-opacity(20);
631
- }
632
- }
633
- }
634
-
635
- .modal-dialog.theme-bg-dark {
636
- .modal-title {
637
- color: $foreground;
638
- }
639
- .modal-header {
640
- .close {
641
- color: $foreground;
642
- text-shadow: 0 1px 0 $background;
643
- }
644
- }
645
- .modal-content {
646
- background: $content-bg;
647
- }
648
- }
626
+ // No using default modal styling
649
627
 
650
628
  /********** Browser Default Overides *********/
651
629
  ::selection {
@@ -711,14 +689,6 @@ input[type='number']::-webkit-inner-spin-button {
711
689
  background: hsla(var(--dh-color-scrollbar-hsl), 0.35);
712
690
  }
713
691
 
714
- // used in inverted color sections, like light modals
715
- .theme-bg-light {
716
- --dh-color-scrollbar-hsl: #{var(--dh-color-bg-hsl)};
717
-
718
- scrollbar-color: hsla(var(--dh-color-scrollbar-hsl), 0.5)
719
- hsla(var(--dh-color-scrollbar-hsl), 0.3); // firefox
720
- }
721
-
722
692
  /********** Monaco Overides *********/
723
693
  //Note many monaco style are set inline, making overrides require !important
724
694
 
@@ -858,16 +828,6 @@ input[type='number']::-webkit-inner-spin-button {
858
828
  }
859
829
  }
860
830
 
861
- .modal-dialog.theme-bg-light .custom-select {
862
- background-image: var(--dh-svg-icon-select-indicator),
863
- solid-gradient($gray-200);
864
-
865
- &:-moz-focusring {
866
- color: transparent;
867
- text-shadow: 0 0 0 $background !important;
868
- }
869
- }
870
-
871
831
  .custom-select option {
872
832
  color: #3a4148;
873
833
  }
@@ -45,9 +45,10 @@
45
45
  // Disabled comes first so active can properly restyle
46
46
  &.disabled,
47
47
  &:disabled {
48
- color: $color;
49
- background-color: $background;
50
- border-color: $border;
48
+ color: var(--dh-color-text-disabled);
49
+ background-color: var(--dh-color-disabled-bg);
50
+ border-color: transparent;
51
+ opacity: 1;
51
52
  // Remove CSS gradients if they're enabled
52
53
  @if $enable-gradients {
53
54
  background-image: none;
@@ -96,8 +97,10 @@
96
97
 
97
98
  &.disabled,
98
99
  &:disabled {
99
- color: $color;
100
+ color: var(--dh-color-text-disabled);
100
101
  background-color: transparent;
102
+ border-color: var(--dh-color-disabled-bg);
103
+ opacity: 1;
101
104
  }
102
105
 
103
106
  &:not(:disabled):not(.disabled):active,
@@ -153,8 +153,7 @@ $grid-gutter-width: 30px;
153
153
 
154
154
  //Visual Overrides
155
155
  $border-radius: 4px;
156
- $box-shadow: 0 0.1rem 1rem hsla(var(--dh-color-black-hsl), 0.45); //because our UI is so dark, we need darker default shadows
157
- $box-shadow-900: 0 0.1rem 1rem hsla(var(--dh-color-true-black-hsl), 0.45); //darkest shadow for $black popups over $black UI
156
+ $box-shadow: 0 0.1rem 1rem var(--dh-color-dropshadow);
158
157
 
159
158
  //Override Btn
160
159
  $btn-border-radius: 4rem;
@@ -166,6 +165,7 @@ $btn-transition:
166
165
  box-shadow 0.12s ease-in-out; //default 0.15 is too long
167
166
  $btn-border-width: 2px;
168
167
  $btn-font-weight: var(--spectrum-global-font-weight-bold);
168
+ $btn-line-height: 1.3;
169
169
 
170
170
  //Override Inputs
171
171
  $input-bg: var(--dh-color-input-bg);
@@ -178,14 +178,28 @@ $input-focus-border-color: var(--dh-color-input-focus-border);
178
178
  $input-btn-focus-width: 0.2rem;
179
179
  $input-btn-focus-color: hsla(var(--dh-color-accent-hsl), 0.35);
180
180
  $input-btn-focus-box-shadow: 0 0 0 $input-btn-focus-width $input-btn-focus-color;
181
+ $input-btn-line-height: 1.3;
182
+ // Bootstrap uses a calc expression to determine the input height (calc(line-height + 2*padding-y + border)).
183
+ // The padding-y value has to be in rem to match units. Using 0.4214rem with 1.3
184
+ // line height gets us to 31.99px vs Spectrum's 32px.
185
+ $input-btn-padding-y: 0.4214rem;
181
186
 
182
187
  //checkbox
183
- $custom-control-indicator-bg: $gray-600;
184
- $custom-control-indicator-active-bg: var(--dh-color-accent-1100);
188
+ $custom-control-indicator-bg: var(--dh-color-input-bg);
189
+ $custom-control-indicator-border-color: var(--dh-color-input-border);
190
+ $custom-checkbox-indicator-border-radius: 2px;
191
+ $custom-control-indicator-border-width: 2px;
192
+ $custom-control-indicator-active-bg: var(--dh-color-input-bg);
193
+ $custom-control-indicator-active-border-color: var(--dh-color-input-fg);
194
+ $custom-control-indicator-checked-bg: var(--dh-color-input-fg);
195
+ $custom-control-indicator-checked-color: black; // used as mask fill color
196
+ $custom-checkbox-indicator-indeterminate-bg: var(--dh-color-input-fg);
185
197
  $custom-control-indicator-bg-size: 75% 75%;
186
- $custom-control-indicator-disabled-bg: $gray-800;
187
- $custom-control-indicator-checked-disabled-bg: $gray-800;
188
- $custom-control-label-disabled-color: $gray-400;
198
+ $custom-control-indicator-disabled-bg: var(--dh-color-input-disabled-bg);
199
+ $custom-control-indicator-checked-disabled-bg: var(
200
+ --dh-color-input-disabled-bg
201
+ );
202
+ $custom-control-label-disabled-color: var(--dh-color-input-disabled-fg);
189
203
 
190
204
  // The $custom-select-indicator variable is used by Bootstrap to provide the
191
205
  // icon for the select dropdown. Inline svgs can't use CSS variables, so we hard
@@ -193,6 +207,7 @@ $custom-control-label-disabled-color: $gray-400;
193
207
  // overrides this icon altogether for known dropdowns, so technically we may not
194
208
  // need this, but it's here in case there are any remaining instances.
195
209
  $custom-select-indicator-color: #929192;
210
+ $custom-select-bg: var(--dh-color-selector-bg);
196
211
  $custom-select-bg-size: 16px 16px;
197
212
  //dhSort icon encoded
198
213
  $custom-select-indicator: str-replace(
@@ -205,9 +220,11 @@ $custom-select-disabled-color: $gray-500;
205
220
  $custom-select-disabled-bg: $gray-800;
206
221
 
207
222
  //modal
208
- $modal-content-bg: $gray-200;
223
+ $modal-content-bg: $content-bg;
209
224
  $modal-content-border-width: 0;
210
225
  $modal-md: 550px;
226
+ $close-color: var(--dh-color-text);
227
+ $close-text-shadow: none;
211
228
 
212
229
  // Toast notification
213
230
  $toast-bg: var(--dh-color-accent-100);
@@ -228,12 +245,15 @@ $dropdown-link-hover-bg: $primary;
228
245
  $dropdown-divider-bg: $gray-700;
229
246
 
230
247
  //context menus
231
- $contextmenu-bg: $gray-600;
232
- $contextmenu-color: $foreground;
233
- $contextmenu-disabled-color: $text-muted;
234
- $contextmenu-keyboard-selected-bg: hsla(var(--dh-color-accent-hsl), 0.5);
235
- $contextmenu-selected-bg: $primary;
236
- $contextmenu-selected-color: $foreground;
248
+ $contextmenu-bg: var(--dh-color-popover-bg);
249
+ $contextmenu-color: var(--dh-color-text);
250
+ $contextmenu-disabled-color: var(--dh-color-input-disabled-fg);
251
+ $contextmenu-keyboard-selected-bg: var(--dh-color-keyboard-selected-bg);
252
+ $contextmenu-selected-bg: var(--dh-color-item-list-hover-bg);
253
+ $contextmenu-selected-color: var(--dh-color-item-list-selected-fg);
254
+
255
+ //hr
256
+ $hr-border-color: var(--dh-color-hr);
237
257
 
238
258
  //links
239
259
  $link-color: $gray-400;