@deque/cauldron-styles 7.6.0-canary.c56fdf76 → 7.6.0-canary.c59590bf

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 +45 -9
  2. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -3174,6 +3174,7 @@ button.TooltipTabstop {
3174
3174
  --skip-link-background-color: rgba(255, 255, 255, 0.95);
3175
3175
  --skip-link-focus-color: var(--focus-light);
3176
3176
  --skip-link-text-color: var(--text-color-base);
3177
+ --skip-link-offset: 11px;
3177
3178
  }
3178
3179
 
3179
3180
  .SkipLink {
@@ -3181,14 +3182,20 @@ button.TooltipTabstop {
3181
3182
  box-sizing: border-box;
3182
3183
  padding: var(--space-smallest);
3183
3184
  top: -999px;
3184
- left: 11px;
3185
+ left: var(--skip-link-offset);
3186
+ /* Never wider than the containing block, even with enlarged text. */
3187
+ min-width: min(
3188
+ calc(13rem + 2 * var(--space-smallest)),
3189
+ calc(100% - 2 * var(--skip-link-offset))
3190
+ );
3191
+ max-width: calc(100% - 2 * var(--skip-link-offset));
3185
3192
  opacity: 0;
3186
3193
  transition: 250ms opacity;
3187
3194
  z-index: var(--z-index-skip-container);
3188
3195
  }
3189
3196
 
3190
3197
  .SkipLink.SkipLink--active {
3191
- top: 11px;
3198
+ top: var(--skip-link-offset);
3192
3199
  }
3193
3200
 
3194
3201
  .SkipLink.SkipLink--fade {
@@ -3197,7 +3204,6 @@ button.TooltipTabstop {
3197
3204
  }
3198
3205
 
3199
3206
  .SkipLink a {
3200
- min-width: 13rem;
3201
3207
  background-color: var(--skip-link-background-color);
3202
3208
  display: block;
3203
3209
  color: var(--skip-link-text-color);
@@ -4007,11 +4013,6 @@ button.TooltipTabstop {
4007
4013
  border-bottom: 1px solid var(--gray-40);
4008
4014
  }
4009
4015
 
4010
- .Table--border .TableBody .TableHeader {
4011
- border-bottom-width: 1px;
4012
- border-right: 1px solid var(--table-row-border-color);
4013
- }
4014
-
4015
4016
  .cauldron--theme-dark .Table--border,
4016
4017
  .cauldron--theme-dark .Table--border .TableHeader,
4017
4018
  .cauldron--theme-dark .Table--border .TableFooter,
@@ -5350,6 +5351,14 @@ button.Accordion__trigger {
5350
5351
  border-radius: 0 0 3px 3px;
5351
5352
  }
5352
5353
 
5354
+ .Accordion__panel > :first-child {
5355
+ margin-top: 0;
5356
+ }
5357
+
5358
+ .Accordion__panel > :last-child {
5359
+ margin-bottom: 0;
5360
+ }
5361
+
5353
5362
  .Accordion:has(> button[aria-expanded='true']) {
5354
5363
  box-shadow: var(--drop-shadow-raised);
5355
5364
  }
@@ -5440,7 +5449,7 @@ button.Accordion__trigger {
5440
5449
  margin-top: var(--space-smallest);
5441
5450
  }
5442
5451
 
5443
- .Notice .Icon > svg {
5452
+ .Notice .Notice__icon > svg {
5444
5453
  height: var(--notice-icon-size);
5445
5454
  width: var(--notice-icon-size);
5446
5455
  color: var(--notice-icon-color);
@@ -6053,6 +6062,7 @@ button.Accordion__trigger {
6053
6062
  position: fixed;
6054
6063
  max-height: var(--drawer-height, 100vh);
6055
6064
  max-width: var(--drawer-width, 100vw);
6065
+ overflow-y: auto;
6056
6066
  z-index: var(--z-index-drawer);
6057
6067
  transition: transform var(--drawer-animation-timing-function, ease-out)
6058
6068
  var(--drawer-animation-timing, 250ms);
@@ -6348,6 +6358,13 @@ button.Accordion__trigger {
6348
6358
  --action-list-item-description-color: var(--action-list-text-color);
6349
6359
  }
6350
6360
 
6361
+ /* accent-error on the gray-20 hover background is only 4.15:1. :where() keeps
6362
+ this at the base rule's specificity so the dark theme overrides still win. */
6363
+ .ActionListItem--danger:where(:hover:not([aria-disabled='true'])) {
6364
+ --action-list-text-color: var(--accent-error-active);
6365
+ --action-list-item-icon-color: var(--accent-error-active);
6366
+ }
6367
+
6351
6368
  :where(.cauldron--theme-dark) .ActionListItem--danger {
6352
6369
  --action-list-text-color: #fff;
6353
6370
  --action-list-item-icon-color: #fff;
@@ -6480,6 +6497,7 @@ button.Accordion__trigger {
6480
6497
  }
6481
6498
  :root {
6482
6499
  --tree-view-padding: 1rem;
6500
+ --tree-view-row-height: 36px;
6483
6501
  --tree-view-focus-ring-color: var(--focus-light);
6484
6502
  --tree-view-highlight-background: var(--accent-light);
6485
6503
  }
@@ -6504,6 +6522,17 @@ button.Accordion__trigger {
6504
6522
  outline-offset: -1px;
6505
6523
  }
6506
6524
 
6525
+ /* Virtualized rows are absolutely positioned and the list layout owns their
6526
+ spacing, so the flex container's flow, gap and padding are cleared. The tree
6527
+ needs a definite width from an ancestor — absolutely positioned rows give it
6528
+ no intrinsic one. */
6529
+ .TreeView--virtualized {
6530
+ display: block;
6531
+ gap: 0;
6532
+ padding: 0;
6533
+ position: relative;
6534
+ }
6535
+
6507
6536
  .TreeView .TreeView__item {
6508
6537
  display: flex;
6509
6538
  align-items: center;
@@ -6515,6 +6544,13 @@ button.Accordion__trigger {
6515
6544
  transform: translateZ(0);
6516
6545
  }
6517
6546
 
6547
+ /* Vertical padding makes virtualized rows overlap and swallow the gap: the
6548
+ virtualizer measures a row's content box first, its border box after. */
6549
+ .TreeView--virtualized .TreeView__item {
6550
+ padding-block: 0;
6551
+ min-height: var(--tree-view-row-height);
6552
+ }
6553
+
6518
6554
  .TreeView .TreeView__item .TreeView__chevron {
6519
6555
  all: unset;
6520
6556
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-styles",
3
- "version": "7.6.0-canary.c56fdf76",
3
+ "version": "7.6.0-canary.c59590bf",
4
4
  "license": "MPL-2.0",
5
5
  "description": "deque cauldron pattern library styles",
6
6
  "repository": "https://github.com/dequelabs/cauldron",