@deque/cauldron-styles 5.5.0 → 5.5.1-canary.475c378e
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.
- package/dist/index.css +92 -69
- package/package.json +2 -2
package/dist/index.css
CHANGED
|
@@ -1456,7 +1456,17 @@ ul.semantic-only {
|
|
|
1456
1456
|
--field-background-color-disabled: #f7f7f7;
|
|
1457
1457
|
--field-required-text-color: var(--gray-60);
|
|
1458
1458
|
--field-label-text-color: var(--gray-90);
|
|
1459
|
+
--field-label-error-text-color: var(--error);
|
|
1459
1460
|
--field-label-description-text-color: var(--gray-60);
|
|
1461
|
+
--field-icon-inactive-color: var(--gray-90);
|
|
1462
|
+
--field-icon-active-color: rgba(60, 122, 174, 0.25);
|
|
1463
|
+
--field-icon-error-active-color: rgba(217, 50, 81, 0.25);
|
|
1464
|
+
--field-icon-checked-color: var(--accent-primary);
|
|
1465
|
+
--field-icon-checked-disabled-color: var(--accent-primary-dsiabled, #78a6d8);
|
|
1466
|
+
--field-icon-unchecked-disabled-color: var(--gray-40);
|
|
1467
|
+
--field-icon-focus-color: var(--focus-light);
|
|
1468
|
+
--field-error-text-color: var(--error);
|
|
1469
|
+
--field-error-border-color: var(--error);
|
|
1460
1470
|
--input-min-width: 250px;
|
|
1461
1471
|
}
|
|
1462
1472
|
|
|
@@ -1472,7 +1482,16 @@ ul.semantic-only {
|
|
|
1472
1482
|
--field-background-color-disabled: #5d676f;
|
|
1473
1483
|
--field-required-text-color: var(--white);
|
|
1474
1484
|
--field-label-text-color: var(--white);
|
|
1475
|
-
--field-label-description-text-color:
|
|
1485
|
+
--field-label-description-text-color: var(--accent-light);
|
|
1486
|
+
--field-icon-inactive-color: var(--white);
|
|
1487
|
+
--field-icon-active-color: rgba(212, 221, 224, 0.25);
|
|
1488
|
+
--field-icon-error-active-color: rgba(254, 109, 107, 0.25);
|
|
1489
|
+
--field-icon-checked-color: var(--accent-light);
|
|
1490
|
+
--field-icon-checked-disabled-color: var(--stroke-dark);
|
|
1491
|
+
--field-icon-unchecked-disabled-color: var(--stroke-dark);
|
|
1492
|
+
--field-icon-focus-color: var(--focus-dark);
|
|
1493
|
+
--field-error-text-color: var(--error);
|
|
1494
|
+
--field-error-border-color: var(--error);
|
|
1476
1495
|
}
|
|
1477
1496
|
|
|
1478
1497
|
input,
|
|
@@ -1560,6 +1579,10 @@ textarea.Field--has-error,
|
|
|
1560
1579
|
color: var(--field-border-color-error);
|
|
1561
1580
|
}
|
|
1562
1581
|
|
|
1582
|
+
.Icon--checkbox-unchecked.Checkbox__overlay:active.Field--has-error:not(.Checkbox__overlay--disabled) {
|
|
1583
|
+
background-color: var(--field-icon-error-active-color);
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1563
1586
|
input.Field--has-error:hover,
|
|
1564
1587
|
select.Field--has-error:hover,
|
|
1565
1588
|
textarea.Field--has-error:hover,
|
|
@@ -1600,11 +1623,14 @@ textarea.Field--has-error:focus:hover,
|
|
|
1600
1623
|
}
|
|
1601
1624
|
|
|
1602
1625
|
.Error {
|
|
1603
|
-
color: var(--error);
|
|
1626
|
+
color: var(--field-error-text-color);
|
|
1627
|
+
border-top: 1px solid var(--field-error-border-color);
|
|
1604
1628
|
text-align: left;
|
|
1605
|
-
font-size: var(--text-size-smallest);
|
|
1606
1629
|
font-weight: var(--font-weight-normal);
|
|
1607
|
-
|
|
1630
|
+
font-size: var(--text-size-smallest);
|
|
1631
|
+
margin-top: var(--space-half);
|
|
1632
|
+
margin-left: calc(var(--icon-size) + 2px + var(--space-half));
|
|
1633
|
+
padding: var(--space-half) 0;
|
|
1608
1634
|
}
|
|
1609
1635
|
|
|
1610
1636
|
.Field {
|
|
@@ -1622,14 +1648,27 @@ textarea.Field--has-error:focus:hover,
|
|
|
1622
1648
|
margin-bottom: 0;
|
|
1623
1649
|
}
|
|
1624
1650
|
|
|
1651
|
+
.Checkbox__wrap,
|
|
1652
|
+
.Radio__wrap {
|
|
1653
|
+
margin-bottom: var(--space-smallest);
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
.Checkbox__wrap:last-of-type,
|
|
1657
|
+
.Radio__wrap:last-of-type {
|
|
1658
|
+
margin-bottom: 0;
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
.Radio--inline .Radio__wrap {
|
|
1662
|
+
margin-bottom: 0;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1625
1665
|
.Checkbox,
|
|
1626
1666
|
.Radio {
|
|
1627
1667
|
box-sizing: border-box;
|
|
1628
1668
|
position: relative;
|
|
1629
|
-
margin-bottom: 0;
|
|
1630
1669
|
flex-direction: row-reverse;
|
|
1631
1670
|
justify-content: flex-end;
|
|
1632
|
-
flex-wrap:
|
|
1671
|
+
flex-wrap: nowrap;
|
|
1633
1672
|
}
|
|
1634
1673
|
|
|
1635
1674
|
.Radio--inline {
|
|
@@ -1639,19 +1678,15 @@ textarea.Field--has-error:focus:hover,
|
|
|
1639
1678
|
gap: var(--space-small);
|
|
1640
1679
|
}
|
|
1641
1680
|
|
|
1642
|
-
.Checkbox
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
.Checkbox + .Checkbox,
|
|
1647
|
-
.Radio + .Radio {
|
|
1648
|
-
margin-top: var(--space-smallest);
|
|
1681
|
+
.Checkbox + .Field__labelDescription,
|
|
1682
|
+
.Radio + .Field__labelDescription {
|
|
1683
|
+
margin-top: var(--space-half);
|
|
1684
|
+
margin-bottom: var(--space-small);
|
|
1649
1685
|
}
|
|
1650
1686
|
|
|
1651
|
-
.Checkbox .
|
|
1652
|
-
.Radio .
|
|
1687
|
+
.Checkbox__wrap:last-of-type .Checkbox + .Field__labelDescription,
|
|
1688
|
+
.Radio__wrap:last-of-type .Radio + .Field__labelDescription {
|
|
1653
1689
|
margin-bottom: 0;
|
|
1654
|
-
padding-bottom: 0;
|
|
1655
1690
|
}
|
|
1656
1691
|
|
|
1657
1692
|
.Field__label {
|
|
@@ -1659,9 +1694,28 @@ textarea.Field--has-error:focus:hover,
|
|
|
1659
1694
|
align-items: center;
|
|
1660
1695
|
text-align: left;
|
|
1661
1696
|
color: var(--field-label-text-color);
|
|
1697
|
+
margin-bottom: var(--space-half);
|
|
1662
1698
|
font-size: var(--text-size-small);
|
|
1663
1699
|
font-weight: var(--font-weight-medium);
|
|
1664
|
-
|
|
1700
|
+
cursor: default;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
.Field__label + .Checkbox__wrap {
|
|
1704
|
+
margin-top: var(--space-half);
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
.Field__label + [role^='radiogroup'] {
|
|
1708
|
+
margin-top: var(--space-smallest);
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
.Checkbox__label,
|
|
1712
|
+
.Radio__label {
|
|
1713
|
+
display: flex;
|
|
1714
|
+
align-items: center;
|
|
1715
|
+
text-align: left;
|
|
1716
|
+
color: var(--field-label-text-color);
|
|
1717
|
+
font-size: var(--text-size-small);
|
|
1718
|
+
font-weight: var(--font-weight-normal);
|
|
1665
1719
|
cursor: default;
|
|
1666
1720
|
}
|
|
1667
1721
|
|
|
@@ -1681,7 +1735,7 @@ textarea.Field--has-error:focus:hover,
|
|
|
1681
1735
|
}
|
|
1682
1736
|
|
|
1683
1737
|
.Field__label--has-error .Field__required-text {
|
|
1684
|
-
color: var(--error);
|
|
1738
|
+
color: var(--field-label-error-text-color);
|
|
1685
1739
|
}
|
|
1686
1740
|
|
|
1687
1741
|
.Field__label--inline {
|
|
@@ -1726,20 +1780,14 @@ textarea.Field--has-error:focus:hover,
|
|
|
1726
1780
|
font-size: var(--text-size-small);
|
|
1727
1781
|
font-weight: var(--font-weight-normal);
|
|
1728
1782
|
line-height: 1;
|
|
1783
|
+
margin-top: var(--space-half);
|
|
1729
1784
|
margin-left: calc(24px + 2px + var(--space-half));
|
|
1730
1785
|
cursor: default;
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
.Icon + .Error {
|
|
1734
|
-
flex-basis: 100%;
|
|
1735
|
-
margin-top: var(--space-smallest);
|
|
1786
|
+
display: flex;
|
|
1736
1787
|
}
|
|
1737
1788
|
|
|
1738
1789
|
.Field__labelDescription + .Error {
|
|
1739
|
-
|
|
1740
|
-
margin-left: calc(24px + 2px + var(--space-half));
|
|
1741
|
-
padding: 4px 0;
|
|
1742
|
-
margin-top: 4px;
|
|
1790
|
+
margin-top: var(--space-smallest);
|
|
1743
1791
|
}
|
|
1744
1792
|
|
|
1745
1793
|
.Radio__overlay,
|
|
@@ -1747,9 +1795,13 @@ textarea.Field--has-error:focus:hover,
|
|
|
1747
1795
|
border: 1px solid transparent;
|
|
1748
1796
|
box-sizing: border-box;
|
|
1749
1797
|
cursor: pointer;
|
|
1750
|
-
|
|
1751
|
-
color: #333;
|
|
1798
|
+
color: var(--field-icon-inactive-color);
|
|
1752
1799
|
margin-right: var(--space-half);
|
|
1800
|
+
align-self: flex-start;
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
.Checkbox__overlay {
|
|
1804
|
+
border-radius: 5px;
|
|
1753
1805
|
}
|
|
1754
1806
|
|
|
1755
1807
|
.Radio__overlay {
|
|
@@ -1763,7 +1815,7 @@ textarea.Field--has-error:focus:hover,
|
|
|
1763
1815
|
|
|
1764
1816
|
.Radio__overlay:active:not(.Radio__overlay--disabled),
|
|
1765
1817
|
.Checkbox__overlay:active:not(.Checkbox__overlay--disabled) {
|
|
1766
|
-
background-color:
|
|
1818
|
+
background-color: var(--field-icon-active-color);
|
|
1767
1819
|
}
|
|
1768
1820
|
|
|
1769
1821
|
.Radio input[type='radio'] {
|
|
@@ -1778,17 +1830,22 @@ textarea.Field--has-error:focus:hover,
|
|
|
1778
1830
|
|
|
1779
1831
|
.Checkbox__overlay.Checkbox__overlay--focused,
|
|
1780
1832
|
.Radio__overlay.Radio__overlay--focused {
|
|
1781
|
-
|
|
1782
|
-
box-shadow: inset 0 0 0 1px var(--focus), 0 0 4px 2px var(--focus-glow);
|
|
1833
|
+
box-shadow: 0 0 0 2px var(--field-icon-focus-color);
|
|
1783
1834
|
}
|
|
1784
1835
|
|
|
1785
|
-
.Radio__overlay.Icon--radio-checked
|
|
1786
|
-
|
|
1836
|
+
.Radio__overlay.Icon--radio-checked,
|
|
1837
|
+
.Checkbox__overlay.Icon--checkbox-checked {
|
|
1838
|
+
color: var(--field-icon-checked-color);
|
|
1787
1839
|
}
|
|
1788
1840
|
|
|
1789
1841
|
.Radio__overlay--disabled.Icon--radio-checked,
|
|
1842
|
+
.Checkbox__overlay--disabled.Icon--checkbox-checked {
|
|
1843
|
+
color: var(--field-icon-checked-disabled-color);
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
.Checkbox__overlay--disabled.Icon--checkbox-unchecked,
|
|
1790
1847
|
.Radio__overlay--disabled.Icon--radio-unchecked {
|
|
1791
|
-
color:
|
|
1848
|
+
color: var(--field-icon-unchecked-disabled-color);
|
|
1792
1849
|
}
|
|
1793
1850
|
|
|
1794
1851
|
.Field__label:hover ~ .Radio__overlay:not(.Radio__overlay--disabled),
|
|
@@ -1806,45 +1863,11 @@ textarea.Field--has-error:focus:hover,
|
|
|
1806
1863
|
appearance: none;
|
|
1807
1864
|
}
|
|
1808
1865
|
|
|
1809
|
-
.Checkbox__overlay.Icon--checkbox-checked {
|
|
1810
|
-
color: #3c7aae;
|
|
1811
|
-
}
|
|
1812
|
-
|
|
1813
|
-
.Checkbox__overlay--disabled.Icon--checkbox-checked,
|
|
1814
|
-
.Checkbox__overlay--disabled.Icon--checkbox-unchecked {
|
|
1815
|
-
color: #ccc;
|
|
1816
|
-
}
|
|
1817
|
-
|
|
1818
1866
|
.Field__label:hover ~ .Checkbox__overlay:not(.Checkbox__overlay--disabled),
|
|
1819
1867
|
.Checkbox__overlay:hover:not(.Checkbox__overlay--disabled) {
|
|
1820
1868
|
border: 1px solid currentColor;
|
|
1821
1869
|
}
|
|
1822
1870
|
|
|
1823
|
-
/* Dark Theme */
|
|
1824
|
-
|
|
1825
|
-
.cauldron--theme-dark {
|
|
1826
|
-
--field-label-text-color: var(--white);
|
|
1827
|
-
}
|
|
1828
|
-
|
|
1829
|
-
.cauldron--theme-dark .Radio__overlay,
|
|
1830
|
-
.cauldron--theme-dark .Checkbox__overlay {
|
|
1831
|
-
color: var(--white);
|
|
1832
|
-
}
|
|
1833
|
-
|
|
1834
|
-
.cauldron--theme-dark .Checkbox__overlay.Icon--checkbox-checked {
|
|
1835
|
-
color: var(--accent-light);
|
|
1836
|
-
}
|
|
1837
|
-
|
|
1838
|
-
.cauldron--theme-dark .Checkbox__overlay.Field--has-error {
|
|
1839
|
-
color: var(--accent-danger);
|
|
1840
|
-
}
|
|
1841
|
-
|
|
1842
|
-
.cauldron--theme-dark .Radio__overlay--disabled,
|
|
1843
|
-
.cauldron--theme-dark .Checkbox__overlay--disabled.Icon--checkbox-checked,
|
|
1844
|
-
.cauldron--theme-dark .Checkbox__overlay--disabled.Icon--checkbox-unchecked {
|
|
1845
|
-
color: #4c99a9;
|
|
1846
|
-
}
|
|
1847
|
-
|
|
1848
1871
|
:root {
|
|
1849
1872
|
--link-text-color: var(--gray-90);
|
|
1850
1873
|
--link-text-color-hover: #3873a3;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deque/cauldron-styles",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.1-canary.475c378e",
|
|
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
|
+
}
|