@deque/cauldron-styles 4.5.0-canary.16adb900 → 4.5.0-canary.7fd7d095

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 +113 -3
  2. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -8,6 +8,7 @@
8
8
  /* color palette */
9
9
  --white: #ffffff;
10
10
  --dark-workspace-color: #53636e;
11
+ --stroke-dark: #5d676f;
11
12
  --gray-10: #fdfdfe;
12
13
  --gray-20: #f2f2f2;
13
14
  --gray-30: #e0e0e0;
@@ -36,6 +37,10 @@
36
37
  --accent-secondary-active: var(--gray-30);
37
38
  --focus-light: #c11bde;
38
39
  --focus-dark: #eb94ff;
40
+ --issue-critical: #ed5959;
41
+ --issue-serious: #f3826b;
42
+ --issue-moderate: #ffdd76;
43
+ --issue-minor: #d3dde0;
39
44
 
40
45
  /* text colours */
41
46
  --text-color-base: var(--gray-60);
@@ -394,6 +399,10 @@ p {
394
399
  gap: 8px;
395
400
  }
396
401
 
402
+ .Button--tag {
403
+ position: relative;
404
+ }
405
+
397
406
  button.Link {
398
407
  cursor: pointer;
399
408
  }
@@ -408,7 +417,8 @@ button.Link {
408
417
  .Button--primary:before,
409
418
  .Button--secondary:before,
410
419
  .Button--clear:before,
411
- .Button--error:before {
420
+ .Button--error:before,
421
+ .Button--tag:before {
412
422
  content: '';
413
423
  position: absolute;
414
424
  top: -2px;
@@ -419,6 +429,10 @@ button.Link {
419
429
  pointer-events: none;
420
430
  }
421
431
 
432
+ .Button--tag:before {
433
+ border-radius: 11px;
434
+ }
435
+
422
436
  .Button--primary:not([disabled]):not([aria-disabled='true']):hover:before {
423
437
  box-shadow: 0 0 0 1px var(--button-outline-color-primary);
424
438
  }
@@ -431,9 +445,14 @@ button.Link {
431
445
  box-shadow: 0 0 0 1px var(--button-outline-color-error);
432
446
  }
433
447
 
448
+ .Button--tag:not([disabled]):not([aria-disabled='true']):hover:before {
449
+ box-shadow: 0 0 0 1px var(--button-outline-color-primary);
450
+ }
451
+
434
452
  .Button--primary:focus:before,
435
453
  .Button--secondary:focus:before,
436
- .Button--error:focus:before {
454
+ .Button--error:focus:before,
455
+ .Button--tag:focus:before {
437
456
  box-shadow: 0 0 1px 2px var(--button-focus-ring-color, --focus);
438
457
  }
439
458
 
@@ -484,6 +503,11 @@ button.Link {
484
503
  background-color: var(--button-background-color-error-active);
485
504
  }
486
505
 
506
+ .Button--tag[aria-disabled='true'],
507
+ .Button--tag[disabled] {
508
+ color: var(--disabled);
509
+ }
510
+
487
511
  .Button--primary .Icon,
488
512
  .Button--secondary .Icon,
489
513
  .Button--clear .Icon,
@@ -568,7 +592,8 @@ button.Link {
568
592
  .cauldron--theme-dark .Button--secondary[aria-disabled='true'],
569
593
  .cauldron--theme-dark .Button--secondary[disabled],
570
594
  .cauldron--theme-dark .Button--error[aria-disabled='true'],
571
- .cauldron--theme-dark .Button--error[disabled] {
595
+ .cauldron--theme-dark .Button--error[disabled],
596
+ .cauldron--theme-dark .Button--tag[disabled] {
572
597
  color: var(--dark-workspace-color);
573
598
  }
574
599
 
@@ -608,6 +633,12 @@ button.Link {
608
633
  0 0 0 2px var(--accent-danger);
609
634
  }
610
635
 
636
+ .cauldron--theme-dark
637
+ .Button--tag:not([disabled]):not([aria-disabled='true']):hover:before {
638
+ box-shadow: 0 0 0 1px var(--dark-workspace-color),
639
+ 0 0 0 2px var(--accent-info);
640
+ }
641
+
611
642
  :root {
612
643
  --icon-button-background-color-primary: var(
613
644
  --button-background-color-primary
@@ -4396,3 +4427,82 @@ fieldset.Panel {
4396
4427
  display: none;
4397
4428
  }
4398
4429
  }
4430
+
4431
+ :root {
4432
+ --accordion-trigger-background-color: var(--white);
4433
+ --accordion-trigger-background-color-expanded: var(--gray-20);
4434
+ --accordion-trigger-text-color: var(--gray-90);
4435
+ --accordion-trigger-text-color-hover: var(--accent-primary);
4436
+ --accordion-trigger-box-shadow-hover: var(--accent-primary);
4437
+ --accordion-trigger-border-color: var(--gray-40);
4438
+ --accordion-trigger-icon-color: var(--gray-90);
4439
+ --accordion-panel-background-color: var(--white);
4440
+ --accordion-panel-text-color: var(--gray-90);
4441
+ --accordion-panel-border-color: var(--gray-40);
4442
+ --accordion-box-shadow-color: rgba(0, 0, 0, 0.15);
4443
+ }
4444
+
4445
+ .cauldron--theme-dark {
4446
+ --accordion-trigger-background-color: var(--accent-medium);
4447
+ --accordion-trigger-background-color-expanded: var(--accent-dark);
4448
+ --accordion-trigger-text-color: var(--white);
4449
+ --accordion-trigger-text-color-hover: var(--accent-light);
4450
+ --accordion-trigger-box-shadow-hover: var(--accent-info);
4451
+ --accordion-trigger-border-color: var(--stroke-dark);
4452
+ --accordion-trigger-icon-color: var(--white);
4453
+ --accordion-panel-background-color: var(--accent-medium);
4454
+ --accordion-panel-text-color: var(--white);
4455
+ --accordion-panel-border-color: var(--stroke-dark);
4456
+ }
4457
+
4458
+ .Accordion > :is(h1, h2, h3, h4, h5, h6):first-of-type {
4459
+ all: unset;
4460
+ }
4461
+
4462
+ .Accordion__trigger[type='button'] {
4463
+ background: var(--accordion-trigger-background-color);
4464
+ padding: calc(var(--space-small) - var(--space-half));
4465
+ width: 100%;
4466
+ display: flex;
4467
+ align-items: center;
4468
+ border-radius: 3px;
4469
+ border: 1px solid var(--accordion-trigger-border-color);
4470
+ font-size: var(--text-size-small);
4471
+ margin-top: var(--space-small);
4472
+ color: var(--accordion-trigger-text-color);
4473
+ -webkit-text-decoration: underline solid var(--accordion-trigger-text-color);
4474
+ text-decoration: underline solid var(--accordion-trigger-text-color);
4475
+ }
4476
+
4477
+ button.Accordion__trigger[aria-expanded='true'] {
4478
+ border-bottom-right-radius: 0;
4479
+ border-bottom-left-radius: 0;
4480
+ background: var(--accordion-trigger-background-color-expanded);
4481
+ }
4482
+
4483
+ button.Accordion__trigger:hover {
4484
+ box-shadow: inset 8px 0 0 -4px var(--accordion-trigger-box-shadow-hover);
4485
+ color: var(--accordion-trigger-text-color-hover);
4486
+ transition: all 0.2s ease-in-out;
4487
+ -webkit-text-decoration: underline solid var(--accordion-trigger-text-color-hover);
4488
+ text-decoration: underline solid var(--accordion-trigger-text-color-hover);
4489
+ }
4490
+
4491
+ button.Accordion__trigger:hover .Icon {
4492
+ color: var(--accordion-trigger-icon-color);
4493
+ }
4494
+
4495
+ .Accordion .Icon {
4496
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
4497
+ transition-duration: 0.2s;
4498
+ }
4499
+
4500
+ .Accordion__panel {
4501
+ background: var(--accordion-panel-background-color);
4502
+ color: var(--accordion-panel-text-color);
4503
+ padding: var(--space-small);
4504
+ border: 1px solid var(--accordion-panel-border-color);
4505
+ border-top: 0;
4506
+ border-radius: 0 0 3px 3px;
4507
+ box-shadow: 0 2px 3px 0 var(--accordion-box-shadow-color);
4508
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-styles",
3
- "version": "4.5.0-canary.16adb900",
3
+ "version": "4.5.0-canary.7fd7d095",
4
4
  "license": "MPL-2.0",
5
5
  "description": "deque cauldron pattern library styles",
6
6
  "repository": "https://github.com/dequelabs/cauldron",