@deque/cauldron-styles 6.27.0 → 7.0.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 (2) hide show
  1. package/dist/index.css +34 -9
  2. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -1955,7 +1955,7 @@ a.IconButton {
1955
1955
  --dialog-footer-border: 1px solid var(--dialog-border-color);
1956
1956
  --dialog-header-height: 2.625rem;
1957
1957
  --dialog-close-button-size: var(--target-size-minimum);
1958
- --dialog-vertical-offset: 6.25rem;
1958
+ --dialog-vertical-offset: 4rem;
1959
1959
  --dialog-bottom-spacing: 1.875rem;
1960
1960
  --dialog-content-line-height: inherit;
1961
1961
  }
@@ -1975,6 +1975,7 @@ a.IconButton {
1975
1975
  overflow-x: auto;
1976
1976
  position: fixed;
1977
1977
  top: 0;
1978
+ z-index: var(--z-index-dialog-scrim);
1978
1979
  background-color: var(--scrim-background-color);
1979
1980
  }
1980
1981
 
@@ -2112,13 +2113,13 @@ a.IconButton {
2112
2113
  }
2113
2114
 
2114
2115
  @media (min-width: 20rem) {
2115
- .Dialog__inner {
2116
+ .Modal--scrollable .Dialog__inner {
2116
2117
  max-height: calc(
2117
2118
  100vh - var(--dialog-vertical-offset) - var(--dialog-bottom-spacing)
2118
2119
  );
2119
2120
  }
2120
2121
 
2121
- .Dialog__content {
2122
+ .Modal--scrollable .Dialog__content {
2122
2123
  overflow-y: auto;
2123
2124
  }
2124
2125
  }
@@ -2227,8 +2228,8 @@ a.IconButton {
2227
2228
  }
2228
2229
 
2229
2230
  .Link:where(:has(.Icon)) {
2230
- max-width: -moz-max-content;
2231
- max-width: max-content;
2231
+ width: -moz-fit-content;
2232
+ width: fit-content;
2232
2233
  display: inline-flex;
2233
2234
  align-items: center;
2234
2235
  gap: var(--space-half);
@@ -2461,18 +2462,19 @@ a.IconButton {
2461
2462
  border-color: var(--field-border-color-focus-hover);
2462
2463
  }
2463
2464
 
2464
- .Field__select--wrapper select:invalid,
2465
+ .Field__select--wrapper select:user-invalid,
2465
2466
  .Field--has-error select {
2466
2467
  border-width: 1px;
2467
2468
  border-color: var(--field-border-color-error);
2468
2469
  }
2469
2470
 
2471
+ .Field__select--wrapper select:user-invalid:hover,
2470
2472
  .Field__select--wrapper.Field--has-error select:hover {
2471
2473
  border-color: var(--field-border-color-error-hover);
2472
2474
  box-shadow: 0 0 0 1px var(--field-border-color-error-hover);
2473
2475
  }
2474
2476
 
2475
- .Field__select--wrapper select:invalid:focus,
2477
+ .Field__select--wrapper select:user-invalid:focus,
2476
2478
  .Field__select--wrapper.Field--has-error select:focus {
2477
2479
  border-color: var(--field-border-color-error);
2478
2480
  box-shadow:
@@ -2481,7 +2483,7 @@ a.IconButton {
2481
2483
  var(--field-border-color-error-focus-glow) 0 0 5px 0;
2482
2484
  }
2483
2485
 
2484
- .Field__select--wrapper select:invalid:focus:hover,
2486
+ .Field__select--wrapper select:user-invalid:focus:hover,
2485
2487
  .Field__select--wrapper.Field--has-error select:focus:hover {
2486
2488
  border-color: var(--field-border-color-error-hover);
2487
2489
  }
@@ -2730,15 +2732,33 @@ a.IconButton {
2730
2732
  box-sizing: border-box;
2731
2733
  display: flex;
2732
2734
  padding: var(--space-smallest) var(--space-small);
2735
+ max-height: calc(100vh - var(--top-bar-height));
2733
2736
  }
2734
2737
 
2735
2738
  .Toast.Toast--non-dismissible {
2736
2739
  position: static;
2737
2740
  margin-bottom: var(--space-small);
2741
+ max-height: none;
2738
2742
  }
2739
2743
 
2740
2744
  .TopBar--thin .Toast {
2741
2745
  top: var(--top-bar-height-thin);
2746
+ max-height: calc(100vh - var(--top-bar-height-thin));
2747
+ }
2748
+
2749
+ .TopBar--thin .Toast.Toast--non-dismissible {
2750
+ max-height: none;
2751
+ }
2752
+
2753
+ .TopBar--thin .Toast .Toast__message-content {
2754
+ max-height: calc(
2755
+ 100vh - var(--top-bar-height-thin) - 2 * var(--space-smallest)
2756
+ );
2757
+ }
2758
+
2759
+ .Toast.Toast--non-dismissible .Toast__message-content {
2760
+ max-height: none;
2761
+ overflow-y: visible;
2742
2762
  }
2743
2763
 
2744
2764
  .Toast.Toast--success {
@@ -2763,6 +2783,7 @@ a.IconButton {
2763
2783
  border: 0;
2764
2784
  height: calc(var(--text-size-small) + 9px);
2765
2785
  color: currentColor;
2786
+ flex-shrink: 0;
2766
2787
  }
2767
2788
 
2768
2789
  .Toast__dismiss:focus {
@@ -2779,10 +2800,13 @@ a.IconButton {
2779
2800
  .Toast__message .Toast__message-content {
2780
2801
  border-top: 4px solid transparent;
2781
2802
  border-bottom: 4px solid transparent;
2803
+ overflow-y: auto;
2804
+ max-height: calc(100vh - var(--top-bar-height) - 2 * var(--space-smallest));
2782
2805
  }
2783
2806
 
2784
2807
  .Toast__message .Icon {
2785
2808
  margin-right: var(--space-smallest);
2809
+ flex-shrink: 0;
2786
2810
  }
2787
2811
 
2788
2812
  .Toast__message .fa {
@@ -3204,7 +3228,8 @@ button.TooltipTabstop {
3204
3228
  border-radius: 2px;
3205
3229
  }
3206
3230
 
3207
- .SkipLink span {
3231
+ .SkipLink .SkipLink__item--first,
3232
+ .SkipLink .SkipLink__item--second {
3208
3233
  display: block;
3209
3234
  }
3210
3235
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-styles",
3
- "version": "6.27.0",
3
+ "version": "7.0.0",
4
4
  "license": "MPL-2.0",
5
5
  "description": "deque cauldron pattern library styles",
6
6
  "repository": "https://github.com/dequelabs/cauldron",