@deque/cauldron-styles 5.8.1-canary.02667e00 → 5.8.1-canary.033b4e81

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 (2) hide show
  1. package/dist/index.css +107 -57
  2. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -136,6 +136,12 @@
136
136
  /* radio card */
137
137
  --radio-card-width: 255px;
138
138
  --radio-card-height: 229px;
139
+
140
+ /* target size */
141
+ /* Note: target-size is deprecated, use --target-size-enhanced or --target-size-minimum */
142
+ --target-size: 44px;
143
+ --target-size-enhanced: var(--target-size);
144
+ --target-size-minimum: 24px;
139
145
  }
140
146
 
141
147
  .cauldron--theme-dark {
@@ -359,6 +365,7 @@ p {
359
365
  padding-top: 0;
360
366
  display: flex;
361
367
  justify-content: center;
368
+ background-color: transparent;
362
369
  }
363
370
 
364
371
  .Alert__warning .Dialog__heading:focus {
@@ -873,12 +880,18 @@ a.IconButton {
873
880
  }
874
881
 
875
882
  :root {
876
- --dialog-background-color: var(--white);
877
- --dialog-border-color: #ccc;
878
- --dialog-header-background-color: var(--button-background-color-secondary);
883
+ --dialog-background-color: #fff;
884
+ --dialog-border-color: var(--gray-40);
885
+ --dialog-header-background-color: var(--gray-20);
886
+ --dialog-footer-background-color: var(--gray-20);
887
+ --dialog-heading-text-color: var(--header-text-color-dark);
879
888
  --dialog-padding: var(--space-small);
880
- --dialog-header-height: 42px;
881
- --target-size: 44px;
889
+ --dialog-header-height: 2.625rem;
890
+ --dialog-close-button-size: var(--target-size-minimum);
891
+ }
892
+
893
+ .cauldron--theme-dark {
894
+ --dialog-heading-text-color: #fff;
882
895
  }
883
896
 
884
897
  .Dialog {
@@ -907,7 +920,7 @@ a.IconButton {
907
920
  border: 1px solid var(--dialog-border-color);
908
921
  z-index: var(--z-index-dialog);
909
922
  position: relative;
910
- box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
923
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
911
924
  }
912
925
 
913
926
  .Dialog__header {
@@ -916,8 +929,7 @@ a.IconButton {
916
929
  border-bottom: 1px solid var(--dialog-border-color);
917
930
  align-items: center;
918
931
  justify-content: space-between;
919
- height: var(--dialog-header-height);
920
- text-transform: uppercase;
932
+ min-height: var(--dialog-header-height);
921
933
  font-weight: var(--font-weight-bold);
922
934
  }
923
935
 
@@ -925,20 +937,6 @@ a.IconButton {
925
937
  .Dialog__close {
926
938
  margin: 0;
927
939
  font-size: var(--text-size-small);
928
- height: calc(var(--dialog-header-height) - 8px);
929
- border-top: 4px solid transparent;
930
- border-bottom: 4px solid transparent;
931
- }
932
-
933
- .Dialog__heading:focus,
934
- .Dialog__close:focus,
935
- .Dialog__close:hover {
936
- border-bottom-color: var(--text-color-base);
937
- outline: none;
938
- }
939
-
940
- .Dialog__close:focus {
941
- border-top: 4px solid transparent;
942
940
  }
943
941
 
944
942
  .Dialog__heading {
@@ -948,14 +946,50 @@ a.IconButton {
948
946
  }
949
947
 
950
948
  .Dialog__close {
951
- color: var(--text-color-base);
952
- width: var(--dialog-header-height);
949
+ color: var(--dialog-heading-text-color);
953
950
  background-color: initial;
951
+ border: 1px solid var(--dialog-border-color);
952
+ border-radius: 3px;
953
+ padding: 0;
954
+ height: var(--dialog-close-button-size);
955
+ width: var(--dialog-close-button-size);
956
+ margin-right: var(--space-smallest);
957
+ position: relative;
958
+ }
959
+
960
+ .Dialog__close:active {
961
+ background-color: var(--dialog-border-color);
962
+ }
963
+
964
+ .Dialog__close:before {
965
+ content: '';
966
+ position: absolute;
967
+ top: -2px;
968
+ right: -2px;
969
+ bottom: -2px;
970
+ left: -2px;
971
+ border-radius: 4px;
972
+ pointer-events: none;
973
+ }
974
+
975
+ .cauldron--theme-dark .Dialog__close:before {
976
+ top: -3px;
977
+ right: -3px;
978
+ bottom: -3px;
979
+ left: -3px;
980
+ }
981
+
982
+ .Dialog__close:is(:hover, :focus):before {
983
+ box-shadow: 0 0 0 1px var(--dialog-heading-text-color);
954
984
  }
955
985
 
956
986
  .Dialog__close svg {
957
- height: var(--icon-size);
958
- width: var(--icon-size);
987
+ height: 100%;
988
+ width: 100%;
989
+ }
990
+
991
+ .cauldron--theme-dark .Dialog__close {
992
+ border-width: 2px;
959
993
  }
960
994
 
961
995
  .Dialog__content {
@@ -971,9 +1005,9 @@ a.IconButton {
971
1005
  }
972
1006
 
973
1007
  .Dialog__footer {
974
- background-color: #fff;
1008
+ background-color: var(--dialog-footer-background-color);
975
1009
  border-top: 1px solid var(--dialog-border-color);
976
- padding: calc(var(--space-small) - 4px) var(--dialog-padding);
1010
+ padding: var(--dialog-padding);
977
1011
  }
978
1012
 
979
1013
  /**
@@ -981,24 +1015,7 @@ a.IconButton {
981
1015
  */
982
1016
 
983
1017
  .Modal--info .Dialog__header {
984
- border: none;
985
1018
  background-color: transparent;
986
- height: auto;
987
- align-items: flex-start;
988
- }
989
-
990
- .Modal--info .Dialog__close {
991
- padding: var(--space-three-quarters);
992
- height: var(--target-size);
993
- width: var(--target-size);
994
- }
995
-
996
- .Modal--info .Dialog__heading {
997
- flex: 1;
998
- justify-content: center;
999
- height: auto;
1000
- padding-top: var(--space-large);
1001
- margin-left: var(--target-size);
1002
1019
  }
1003
1020
 
1004
1021
  .Modal--info .Dialog__content {
@@ -1010,6 +1027,7 @@ a.IconButton {
1010
1027
  .Modal--info .Dialog__footer {
1011
1028
  display: flex;
1012
1029
  justify-content: center;
1030
+ background-color: transparent;
1013
1031
  border-top: none;
1014
1032
  padding-top: 0;
1015
1033
  }
@@ -1023,11 +1041,11 @@ a.IconButton {
1023
1041
  }
1024
1042
 
1025
1043
  .cauldron--theme-dark .Dialog__header {
1026
- border-bottom: 1px solid #5d676f;
1044
+ border-bottom: 1px solid var(--stroke-dark);
1027
1045
  }
1028
1046
 
1029
1047
  .cauldron--theme-dark .Dialog__footer {
1030
- border-top: 1px solid #5d676f;
1048
+ border-top: 1px solid var(--stroke-dark);
1031
1049
  }
1032
1050
 
1033
1051
  .cauldron--theme-dark .Dialog__header,
@@ -1040,20 +1058,14 @@ a.IconButton {
1040
1058
  color: var(--gray-20);
1041
1059
  }
1042
1060
 
1043
- .cauldron--theme-dark .Dialog__heading:focus,
1044
- .cauldron--theme-dark .Dialog__close:focus,
1045
- .cauldron--theme-dark .Dialog__close:hover {
1046
- border-bottom-color: var(--white);
1061
+ .cauldron--theme-dark .Dialog__close:active {
1062
+ color: var(--accent-medium);
1047
1063
  }
1048
1064
 
1049
1065
  .cauldron--theme-dark .Modal--info .Dialog__header,
1050
1066
  .cauldron--theme-dark .Modal--info .Dialog__content,
1051
1067
  .cauldron--theme-dark .Modal--info .Dialog__footer {
1052
- background-color: var(--accent-medium);
1053
- }
1054
-
1055
- .cauldron--theme-dark .Modal--info .Dialog__header {
1056
- border-bottom: none;
1068
+ background-color: transparent;
1057
1069
  }
1058
1070
 
1059
1071
  .cauldron--theme-dark .Modal--info .Dialog__footer {
@@ -1426,6 +1438,21 @@ a.IconButton {
1426
1438
  font-weight: var(--font-weight-ultra-bold);
1427
1439
  }
1428
1440
 
1441
+ .text--align-left {
1442
+ text-align: left !important;
1443
+ justify-content: left !important;
1444
+ }
1445
+
1446
+ .text--align-center {
1447
+ text-align: center !important;
1448
+ justify-content: center !important;
1449
+ }
1450
+
1451
+ .text--align-right {
1452
+ text-align: right !important;
1453
+ justify-content: right !important;
1454
+ }
1455
+
1429
1456
  body .is--hidden {
1430
1457
  display: none;
1431
1458
  }
@@ -3533,6 +3560,23 @@ button.TooltipTabstop {
3533
3560
  font-weight: var(--font-weight-normal);
3534
3561
  }
3535
3562
 
3563
+ :root {
3564
+ --tag-button-icon-size: 15px;
3565
+ }
3566
+
3567
+ .TagButton {
3568
+ vertical-align: middle;
3569
+ }
3570
+
3571
+ .TagButton__icon {
3572
+ margin-left: var(--space-half);
3573
+ }
3574
+
3575
+ .TagButton__icon svg {
3576
+ width: var(--tag-button-icon-size);
3577
+ height: var(--tag-button-icon-size);
3578
+ }
3579
+
3536
3580
  :root {
3537
3581
  --table-header-text-color: var(--gray-90);
3538
3582
  --table-header-background-color: var(--gray-20);
@@ -4809,7 +4853,12 @@ fieldset.Panel {
4809
4853
 
4810
4854
  .TwoColumnPanel--hide .TwoColumnPanel__Left,
4811
4855
  .TwoColumnPanel--show .TwoColumnPanel__Left {
4812
- margin-left: calc(var(--two-column-panel-left-column-width) * -1);
4856
+ max-width: 100%;
4857
+ /* This will constrain the component to the max-width of its container, as well as adjusting the offset margin to the max negative value to prevent incorrect offset when the max-width is less than the column width. */
4858
+ margin-left: max(
4859
+ calc(var(--two-column-panel-left-column-width) * -1),
4860
+ calc(100% * -1)
4861
+ );
4813
4862
  animation: none;
4814
4863
  opacity: 1;
4815
4864
  }
@@ -5189,6 +5238,7 @@ button.Accordion__trigger {
5189
5238
  }
5190
5239
 
5191
5240
  .ComboboxOption {
5241
+ --field-listbox-selected-text-color: var(--combobox-option-font-color);
5192
5242
  color: var(--combobox-option-font-color);
5193
5243
  padding: var(--space-smallest);
5194
5244
  cursor: pointer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-styles",
3
- "version": "5.8.1-canary.02667e00",
3
+ "version": "5.8.1-canary.033b4e81",
4
4
  "license": "MPL-2.0",
5
5
  "description": "deque cauldron pattern library styles",
6
6
  "repository": "https://github.com/dequelabs/cauldron",