@deque/cauldron-styles 6.4.2-canary.40759dba → 6.4.2-canary.443249a1

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 +49 -17
  2. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -166,7 +166,6 @@
166
166
  --font-weight-light: 300;
167
167
  --font-weight-normal: 400;
168
168
  --font-weight-medium: 500;
169
- --font-weight-semi-bold: 600;
170
169
  --font-weight-bold: 700;
171
170
  --font-weight-ultra-bold: 900;
172
171
 
@@ -1165,13 +1164,15 @@ textarea.Field--has-error:focus:hover,
1165
1164
  --button-background-color-error-active: var(--accent-error-active);
1166
1165
  --button-outline-color-error: var(--error);
1167
1166
 
1167
+ --button-text-size: var(--text-size-body);
1168
+ --button-thin-text-size: var(--text-size-body-small);
1168
1169
  --button-text-color-dark: var(--gray-90);
1169
1170
  --button-text-color-light: #fff;
1170
1171
  --button-text-color-disabled: var(--disabled);
1171
1172
  --button-focus-ring-color: var(--focus-light);
1172
1173
  --button-thin-height: var(--target-size-minimum);
1173
1174
 
1174
- --button-height: 36px;
1175
+ --button-height: 2.25rem;
1175
1176
  }
1176
1177
 
1177
1178
  .Button--primary,
@@ -1181,18 +1182,18 @@ textarea.Field--has-error:focus:hover,
1181
1182
  .Button--error {
1182
1183
  border-radius: 3px;
1183
1184
  border: 1px solid transparent;
1184
- font-size: var(--text-size-small);
1185
+ font-size: var(--button-text-size);
1185
1186
  box-sizing: border-box;
1186
- padding: 0 16px;
1187
+ padding: 0 var(--space-small);
1187
1188
  position: relative;
1188
1189
  text-align: center;
1189
1190
  min-height: var(--button-height);
1190
- min-width: 100px;
1191
+ min-width: 6.25rem;
1191
1192
  display: inline-grid;
1192
1193
  grid-auto-flow: column;
1193
1194
  align-items: center;
1194
1195
  justify-items: center;
1195
- gap: 8px;
1196
+ gap: var(--space-smallest);
1196
1197
  }
1197
1198
 
1198
1199
  .Button--tag {
@@ -1343,7 +1344,7 @@ button.Link {
1343
1344
  .DefinitionButton button {
1344
1345
  background-color: transparent;
1345
1346
  color: var(--text-color-base);
1346
- font-weight: var(--font-weight-normal);
1347
+ font-weight: var(--font-weight-medium);
1347
1348
  border-bottom: 1px dotted;
1348
1349
  display: inline-block;
1349
1350
  margin: 0 2px;
@@ -1357,9 +1358,9 @@ button.Link {
1357
1358
 
1358
1359
  .Button--thin {
1359
1360
  min-height: var(--button-thin-height);
1360
- min-width: 100px;
1361
- font-size: var(--text-size-smallest);
1362
- padding: 0 16px;
1361
+ min-width: 6.25rem;
1362
+ font-size: var(--button-thin-text-size);
1363
+ padding: 0 var(--space-small);
1363
1364
  }
1364
1365
 
1365
1366
  [class*='Button--'] + [class*='Button--'] {
@@ -1499,6 +1500,8 @@ button.Link {
1499
1500
  --button-background-color-error-active
1500
1501
  );
1501
1502
 
1503
+ --icon-button-text-color-disabled: var(--button-text-color-disabled);
1504
+
1502
1505
  /* Deprecated variables */
1503
1506
  --icon-button-content-color-light-disabled: #ccc;
1504
1507
  --icon-button-background-color-light: #dadada;
@@ -1574,11 +1577,16 @@ a.IconButton {
1574
1577
 
1575
1578
  .IconButton--secondary:is([aria-disabled='true'], [disabled]),
1576
1579
  .IconButton--secondary:is([aria-disabled='true'], [disabled]):active {
1577
- color: var(--disabled);
1580
+ color: var(--icon-button-text-color-disabled);
1578
1581
  background-color: var(--button-background-color-secondary-disabled);
1579
1582
  cursor: default;
1580
1583
  }
1581
1584
 
1585
+ .IconButton--tertiary:is([aria-disabled='true'], [disabled]),
1586
+ .IconButton--tertiary:is([aria-disabled='true'], [disabled]):active {
1587
+ color: var(--icon-button-text-color-disabled);
1588
+ }
1589
+
1582
1590
  .IconButton--primary:is([aria-disabled='true'], [disabled]),
1583
1591
  .IconButton--primary:is([aria-disabled='true'], [disabled]):active {
1584
1592
  background-color: var(--button-background-color-primary-disabled);
@@ -1609,19 +1617,32 @@ a.IconButton {
1609
1617
  background-color: var(--icon-button-background-color-primary-active);
1610
1618
  }
1611
1619
 
1612
- .IconButton--secondary {
1620
+ .IconButton--secondary,
1621
+ .IconButton--tertiary,
1622
+ .IconButton--tertiary:is(:active) {
1613
1623
  border: 1px solid var(--icon-button-border-color-secondary);
1614
1624
  background-color: var(--icon-button-background-color-secondary);
1615
1625
  color: var(--icon-button-secondary-color);
1616
1626
  }
1617
1627
 
1618
- .IconButton--secondary:not([disabled]):not(
1619
- [aria-disabled='true']
1620
- ):hover:before {
1628
+ .IconButton--secondary:not([disabled]):not([aria-disabled='true']):hover:before,
1629
+ .IconButton--tertiary:not([disabled]):not([aria-disabled='true']):is(
1630
+ :hover
1631
+ ):before {
1621
1632
  box-shadow: 0 0 0 1px var(--icon-button-outline-color-secondary);
1622
1633
  }
1623
1634
 
1624
- .IconButton--secondary:active {
1635
+ .IconButton--tertiary:is(
1636
+ :not(:hover, :focus, :active),
1637
+ [disabled],
1638
+ [aria-disabled='true']
1639
+ ) {
1640
+ border-color: transparent;
1641
+ background-color: transparent;
1642
+ }
1643
+
1644
+ .IconButton--secondary:active,
1645
+ .IconButton--tertiary:active {
1625
1646
  background-color: var(--icon-button-background-color-secondary-active);
1626
1647
  }
1627
1648
 
@@ -1673,7 +1694,8 @@ a.IconButton {
1673
1694
  border: 2px solid var(--icon-button-border-color-primary);
1674
1695
  }
1675
1696
 
1676
- .cauldron--theme-dark .IconButton--secondary {
1697
+ .cauldron--theme-dark .IconButton--secondary,
1698
+ .cauldron--theme-dark .IconButton--tertiary {
1677
1699
  border-width: 2px;
1678
1700
  }
1679
1701
 
@@ -1692,6 +1714,7 @@ a.IconButton {
1692
1714
 
1693
1715
  .cauldron--theme-dark .IconButton--primary:active,
1694
1716
  .cauldron--theme-dark .IconButton--secondary:active,
1717
+ .cauldron--theme-dark .IconButton--tertiary:active,
1695
1718
  .cauldron--theme-dark .IconButton--error:active {
1696
1719
  color: var(--icon-button-active-color);
1697
1720
  }
@@ -1712,6 +1735,10 @@ a.IconButton {
1712
1735
  .cauldron--theme-dark
1713
1736
  .IconButton--secondary:not([disabled]):not(
1714
1737
  [aria-disabled='true']
1738
+ ):hover:before,
1739
+ .cauldron--theme-dark
1740
+ .IconButton--tertiary:not([disabled]):not(
1741
+ [aria-disabled='true']
1715
1742
  ):hover:before {
1716
1743
  box-shadow: 0 0 0 1px var(--icon-button-outline-shadow-color),
1717
1744
  0 0 0 2px var(--icon-button-outline-color-secondary);
@@ -1728,6 +1755,11 @@ a.IconButton {
1728
1755
  0 0 0 4px var(--button-focus-ring-color, --focus);
1729
1756
  }
1730
1757
 
1758
+ .cauldron--theme-dark
1759
+ .IconButton--tertiary:is([disabled], [aria-disabled='true']) {
1760
+ color: #74818b;
1761
+ }
1762
+
1731
1763
  :root {
1732
1764
  --dialog-background-color: #fff;
1733
1765
  --dialog-border-color: var(--gray-40);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-styles",
3
- "version": "6.4.2-canary.40759dba",
3
+ "version": "6.4.2-canary.443249a1",
4
4
  "license": "MPL-2.0",
5
5
  "description": "deque cauldron pattern library styles",
6
6
  "repository": "https://github.com/dequelabs/cauldron",