@deque/cauldron-styles 5.6.1 → 5.6.2-canary.14bfe32d

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 +100 -4
  2. package/package.json +2 -2
package/dist/index.css CHANGED
@@ -34,6 +34,7 @@
34
34
  --accent-warning-dark: #b88a00;
35
35
  --accent-info: #6cdaf2;
36
36
  --accent-info-light: #83e4fa;
37
+ --accent-info-active: #a7e9f7;
37
38
  --accent-primary: #3c7aae;
38
39
  --accent-primary-active: #316091;
39
40
  --accent-secondary: var(--gray-20);
@@ -1623,11 +1624,14 @@ textarea.Field--has-error:focus:hover,
1623
1624
 
1624
1625
  .Error {
1625
1626
  color: var(--field-error-text-color);
1626
- border-top: 1px solid var(--field-error-border-color);
1627
1627
  text-align: left;
1628
- font-weight: var(--font-weight-normal);
1629
1628
  font-size: var(--text-size-smallest);
1629
+ font-weight: var(--font-weight-normal);
1630
+ }
1631
+
1632
+ .Checkbox__wrap .Error {
1630
1633
  margin-top: var(--space-half);
1634
+ border-top: 1px solid var(--field-error-border-color);
1631
1635
  margin-left: calc(var(--icon-size) + 2px + var(--space-half));
1632
1636
  padding: var(--space-half) 0;
1633
1637
  }
@@ -1748,7 +1752,7 @@ textarea.Field--has-error:focus:hover,
1748
1752
  box-sizing: border-box;
1749
1753
  font-size: var(--text-size-small);
1750
1754
  color: var(--field-content-color);
1751
- min-width: var(--input-min-width);
1755
+ min-width: min(var(--input-min-width), 100%);
1752
1756
  }
1753
1757
 
1754
1758
  .Field__text-input[disabled],
@@ -1761,7 +1765,7 @@ textarea.Field--has-error:focus:hover,
1761
1765
  display: block;
1762
1766
  min-height: 56px;
1763
1767
  font-size: var(--text-size-small);
1764
- min-width: var(--input-min-width);
1768
+ min-width: min(var(--input-min-width), 100%);
1765
1769
  padding: var(--space-half);
1766
1770
  max-width: 500px;
1767
1771
  color: var(--field-content-color);
@@ -2533,6 +2537,11 @@ p .Link {
2533
2537
  outline-offset: var(--space-quarter);
2534
2538
  }
2535
2539
 
2540
+ .Toast__message button.Link:hover,
2541
+ .Notice a.Link:hover {
2542
+ color: var(--accent-medium);
2543
+ }
2544
+
2536
2545
  .Toast:focus {
2537
2546
  outline: 0;
2538
2547
  }
@@ -4732,3 +4741,90 @@ button.Accordion__trigger {
4732
4741
  border-radius: 0 0 3px 3px;
4733
4742
  box-shadow: 0 2px 3px 0 var(--accordion-box-shadow-color);
4734
4743
  }
4744
+
4745
+ :root {
4746
+ --notice-info-color: var(--accent-info-active);
4747
+ --notice-caution-color: var(--accent-caution);
4748
+ --notice-danger-color: var(--accent-warning-light);
4749
+ --notice-text-color: var(--accent-dark);
4750
+ --notice-title-text-color: var(--accent-dark);
4751
+ --notice-title-font-weight: var(--font-weight-medium);
4752
+ --notice-background-color: var(--notice-info-color);
4753
+ --notice-border-color: var(--accent-dark);
4754
+ --notice-link-hover-color: var(--accent-medium);
4755
+ --notice-icon-size: 1.2em;
4756
+ }
4757
+
4758
+ .Notice--info {
4759
+ --notice-background-color: var(--notice-info-color);
4760
+ }
4761
+
4762
+ .Notice--caution {
4763
+ --notice-background-color: var(--notice-caution-color);
4764
+ }
4765
+
4766
+ .Notice--danger {
4767
+ --notice-background-color: var(--notice-danger-color);
4768
+ }
4769
+
4770
+ .Notice {
4771
+ display: block;
4772
+ padding: var(--space-smaller) var(--space-small);
4773
+ border: 1px solid var(--notice-border-color);
4774
+ background-color: var(--notice-background-color);
4775
+ color: var(--notice-text-color);
4776
+ width: 100%;
4777
+ font-size: var(--text-size-smaller);
4778
+ }
4779
+
4780
+ .Notice .Notice__title,
4781
+ .Notice .Notice__title > :is(h1, h2, h3, h4, h5, h6) {
4782
+ display: flex;
4783
+ align-items: center;
4784
+ font-size: var(--text-size-small);
4785
+ font-weight: var(--notice-title-font-weight);
4786
+ margin: 0;
4787
+ padding: 0;
4788
+ gap: var(--space-three-quarters);
4789
+ color: var(--notice-title-text-color);
4790
+ }
4791
+
4792
+ .Notice .Notice__title + .Notice__content {
4793
+ margin-top: var(--space-smallest);
4794
+ }
4795
+
4796
+ .Notice .Icon > svg {
4797
+ height: var(--notice-icon-size);
4798
+ width: var(--notice-icon-size);
4799
+ }
4800
+
4801
+ .Notice button.Link,
4802
+ .Notice a.Link {
4803
+ background: transparent;
4804
+ border: 0;
4805
+ color: currentColor;
4806
+ }
4807
+
4808
+ .Notice button.Link,
4809
+ .Notice a.Link {
4810
+ color: var(--accent-dark);
4811
+ font-size: var(--text-size-small);
4812
+ font-weight: var(--font-weight-light);
4813
+ text-decoration: underline;
4814
+ }
4815
+
4816
+ .Notice button.Link:focus,
4817
+ .Notice a.Link:focus {
4818
+ outline: 2px solid;
4819
+ color: var(--gray-90);
4820
+ }
4821
+
4822
+ .Notice button.Link:hover,
4823
+ .Notice a.Link:hover {
4824
+ color: var(--notice-link-hover-color);
4825
+ }
4826
+
4827
+ .Notice .Notice__content > p:first-of-type {
4828
+ margin-top: 0;
4829
+ margin-bottom: var(--space-smallest);
4830
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-styles",
3
- "version": "5.6.1",
3
+ "version": "5.6.2-canary.14bfe32d",
4
4
  "license": "MPL-2.0",
5
5
  "description": "deque cauldron pattern library styles",
6
6
  "repository": "https://github.com/dequelabs/cauldron",
@@ -22,4 +22,4 @@
22
22
  "postcss-cli": "^7.1.1",
23
23
  "postcss-import": "^12.0.1"
24
24
  }
25
- }
25
+ }