@deque/cauldron-styles 6.4.2-canary.41dad212 → 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 +102 -37
  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,32 +1164,36 @@ 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
- --button-text-color-light: var(--white);
1170
+ --button-text-color-light: #fff;
1171
+ --button-text-color-disabled: var(--disabled);
1170
1172
  --button-focus-ring-color: var(--focus-light);
1171
1173
  --button-thin-height: var(--target-size-minimum);
1172
1174
 
1173
- --button-height: 36px;
1175
+ --button-height: 2.25rem;
1174
1176
  }
1175
1177
 
1176
1178
  .Button--primary,
1177
1179
  .Button--secondary,
1180
+ .Button--tertiary,
1178
1181
  .Button--clear,
1179
1182
  .Button--error {
1180
1183
  border-radius: 3px;
1181
1184
  border: 1px solid transparent;
1182
- font-size: var(--text-size-small);
1185
+ font-size: var(--button-text-size);
1183
1186
  box-sizing: border-box;
1184
- padding: 0 16px;
1187
+ padding: 0 var(--space-small);
1185
1188
  position: relative;
1186
1189
  text-align: center;
1187
1190
  min-height: var(--button-height);
1188
- min-width: 100px;
1191
+ min-width: 6.25rem;
1189
1192
  display: inline-grid;
1190
1193
  grid-auto-flow: column;
1191
1194
  align-items: center;
1192
1195
  justify-items: center;
1193
- gap: 8px;
1196
+ gap: var(--space-smallest);
1194
1197
  }
1195
1198
 
1196
1199
  .Button--tag {
@@ -1204,6 +1207,7 @@ button.Link {
1204
1207
 
1205
1208
  .Button--primary:focus,
1206
1209
  .Button--secondary:focus,
1210
+ .Button--tertiary:focus,
1207
1211
  .Button--clear:focus,
1208
1212
  .Button--error:focus {
1209
1213
  outline: none;
@@ -1211,6 +1215,7 @@ button.Link {
1211
1215
 
1212
1216
  .Button--primary:before,
1213
1217
  .Button--secondary:before,
1218
+ .Button--tertiary:before,
1214
1219
  .Button--clear:before,
1215
1220
  .Button--error:before,
1216
1221
  .Button--tag:before {
@@ -1232,7 +1237,8 @@ button.Link {
1232
1237
  box-shadow: 0 0 0 1px var(--button-outline-color-primary);
1233
1238
  }
1234
1239
 
1235
- .Button--secondary:not([disabled]):not([aria-disabled='true']):hover:before {
1240
+ .Button--secondary:not([disabled]):not([aria-disabled='true']):hover:before,
1241
+ .Button--tertiary:not([disabled]):not([aria-disabled='true']):hover:before {
1236
1242
  box-shadow: 0 0 0 1px var(--button-outline-color-secondary);
1237
1243
  }
1238
1244
 
@@ -1246,6 +1252,7 @@ button.Link {
1246
1252
 
1247
1253
  .Button--primary:focus:before,
1248
1254
  .Button--secondary:focus:before,
1255
+ .Button--tertiary:focus:before,
1249
1256
  .Button--error:focus:before {
1250
1257
  box-shadow: 0 0 1px 2px var(--button-focus-ring-color, --focus);
1251
1258
  }
@@ -1264,19 +1271,29 @@ button.Link {
1264
1271
  background: var(--button-background-color-primary-active);
1265
1272
  }
1266
1273
 
1267
- .Button--secondary {
1274
+ .Button--secondary,
1275
+ .Button--tertiary {
1268
1276
  background-color: var(--button-background-color-secondary);
1269
1277
  color: var(--button-text-color-dark);
1270
1278
  border: 1px solid var(--field-border-color);
1271
1279
  }
1272
1280
 
1273
- .Button--secondary[aria-disabled='true'],
1274
- .Button--secondary[disabled] {
1275
- color: var(--disabled);
1281
+ .Button--tertiary:is(:not(:hover, :focus), [disabled], [aria-disabled='true']) {
1282
+ border-color: transparent;
1283
+ background-color: transparent;
1284
+ }
1285
+
1286
+ .Button--secondary:is([aria-disabled='true'], [disabled]) {
1287
+ color: var(--button-text-color-disabled);
1276
1288
  background-color: var(--button-background-color-secondary-disabled);
1277
1289
  }
1278
1290
 
1279
- .Button--secondary:not([disabled]):not([aria-disabled='true']):active {
1291
+ .Button--tertiary:is([aria-disabled='true'], [disabled]) {
1292
+ color: var(--button-text-color-disabled);
1293
+ }
1294
+
1295
+ .Button--secondary:not([disabled], [aria-disabled='true']):active,
1296
+ .Button--tertiary:not([disabled], [aria-disabled='true']):active {
1280
1297
  background-color: var(--button-background-color-secondary-active);
1281
1298
  }
1282
1299
 
@@ -1297,13 +1314,13 @@ button.Link {
1297
1314
  background-color: var(--button-background-color-error-active);
1298
1315
  }
1299
1316
 
1300
- .Button--tag[aria-disabled='true'],
1301
- .Button--tag[disabled] {
1317
+ .Button--tag:is([disabled], [aria-disabled='true']) {
1302
1318
  color: var(--disabled);
1303
1319
  }
1304
1320
 
1305
1321
  .Button--primary .Icon,
1306
1322
  .Button--secondary .Icon,
1323
+ .Button--tertiary .Icon,
1307
1324
  .Button--clear .Icon,
1308
1325
  .Button--error .Icon {
1309
1326
  margin: 0 -4px;
@@ -1314,16 +1331,20 @@ button.Link {
1314
1331
  height: calc(var(--button-thin-height) - 8px);
1315
1332
  }
1316
1333
 
1334
+ /* Usage of .DefinitionButton is deprecated and no longer supported */
1335
+
1317
1336
  .DefinitionButton {
1318
1337
  display: inline;
1319
1338
  vertical-align: baseline;
1320
1339
  position: relative;
1321
1340
  }
1322
1341
 
1342
+ /* Usage of .DefinitionButton is deprecated and no longer supported */
1343
+
1323
1344
  .DefinitionButton button {
1324
1345
  background-color: transparent;
1325
1346
  color: var(--text-color-base);
1326
- font-weight: var(--font-weight-normal);
1347
+ font-weight: var(--font-weight-medium);
1327
1348
  border-bottom: 1px dotted;
1328
1349
  display: inline-block;
1329
1350
  margin: 0 2px;
@@ -1337,9 +1358,9 @@ button.Link {
1337
1358
 
1338
1359
  .Button--thin {
1339
1360
  min-height: var(--button-thin-height);
1340
- min-width: 100px;
1341
- font-size: var(--text-size-smallest);
1342
- padding: 0 16px;
1361
+ min-width: 6.25rem;
1362
+ font-size: var(--button-thin-text-size);
1363
+ padding: 0 var(--space-small);
1343
1364
  }
1344
1365
 
1345
1366
  [class*='Button--'] + [class*='Button--'] {
@@ -1374,26 +1395,33 @@ button.Link {
1374
1395
  border: 2px solid var(--accent-light);
1375
1396
  }
1376
1397
 
1398
+ .cauldron--theme-dark .Button--tertiary {
1399
+ color: var(--accent-light);
1400
+ }
1401
+
1402
+ .cauldron--theme-dark .Button--tertiary:not(:hover, :focus) {
1403
+ color: #fff;
1404
+ }
1405
+
1377
1406
  .cauldron--theme-dark .Button--error {
1378
1407
  background-color: var(--accent-medium);
1379
- color: var(--white);
1408
+ color: #fff;
1380
1409
  border: 2px solid var(--accent-danger);
1381
1410
  }
1382
1411
 
1383
- .cauldron--theme-dark .Button--primary[aria-disabled='true'],
1384
- .cauldron--theme-dark .Button--primary[disabled],
1385
- .cauldron--theme-dark .Button--secondary[aria-disabled='true'],
1386
- .cauldron--theme-dark .Button--secondary[disabled],
1387
- .cauldron--theme-dark .Button--error[aria-disabled='true'],
1388
- .cauldron--theme-dark .Button--error[disabled],
1389
- .cauldron--theme-dark .Button--tag[disabled] {
1412
+ .cauldron--theme-dark .Button--primary:is([disabled], [aria-disabled='true']),
1413
+ .cauldron--theme-dark .Button--secondary:is([disabled], [aria-disabled='true']),
1414
+ .cauldron--theme-dark .Button--error:is([disabled], [aria-disabled='true']),
1415
+ .cauldron--theme-dark .Button--tag:is([disabled], [aria-disabled='true']) {
1390
1416
  color: var(--dark-workspace-color);
1391
1417
  }
1392
1418
 
1393
1419
  .cauldron--theme-dark
1394
1420
  .Button--primary:not([disabled]):not([aria-disabled='true']):active,
1395
1421
  .cauldron--theme-dark
1396
- .Button--secondary:not([disabled]):not([aria-disabled='true']):active {
1422
+ .Button--secondary:not([disabled]):not([aria-disabled='true']):active,
1423
+ .cauldron--theme-dark
1424
+ .Button--tertiary:not([disabled]):not([aria-disabled='true']):active {
1397
1425
  color: var(--accent-medium);
1398
1426
  }
1399
1427
 
@@ -1408,7 +1436,7 @@ button.Link {
1408
1436
  }
1409
1437
 
1410
1438
  .cauldron--theme-dark button.Link:hover {
1411
- color: var(--white);
1439
+ color: #fff;
1412
1440
  }
1413
1441
 
1414
1442
  .cauldron--theme-dark
@@ -1418,7 +1446,9 @@ button.Link {
1418
1446
  }
1419
1447
 
1420
1448
  .cauldron--theme-dark
1421
- .Button--secondary:not([disabled]):not([aria-disabled='true']):hover:before {
1449
+ .Button--secondary:not([disabled]):not([aria-disabled='true']):hover:before,
1450
+ .cauldron--theme-dark
1451
+ .Button--tertiary:not([disabled]):not([aria-disabled='true']):hover:before {
1422
1452
  box-shadow: 0 0 0 1px var(--dark-workspace-color),
1423
1453
  0 0 0 2px var(--accent-light);
1424
1454
  }
@@ -1435,6 +1465,10 @@ button.Link {
1435
1465
  0 0 0 2px var(--accent-info);
1436
1466
  }
1437
1467
 
1468
+ .cauldron--theme-dark .Button--tertiary:is([disabled], [aria-disabled='true']) {
1469
+ color: #74818b;
1470
+ }
1471
+
1438
1472
  :root {
1439
1473
  /* Primary */
1440
1474
  --icon-button-primary-color: var(--button-text-color-light);
@@ -1466,6 +1500,8 @@ button.Link {
1466
1500
  --button-background-color-error-active
1467
1501
  );
1468
1502
 
1503
+ --icon-button-text-color-disabled: var(--button-text-color-disabled);
1504
+
1469
1505
  /* Deprecated variables */
1470
1506
  --icon-button-content-color-light-disabled: #ccc;
1471
1507
  --icon-button-background-color-light: #dadada;
@@ -1541,11 +1577,16 @@ a.IconButton {
1541
1577
 
1542
1578
  .IconButton--secondary:is([aria-disabled='true'], [disabled]),
1543
1579
  .IconButton--secondary:is([aria-disabled='true'], [disabled]):active {
1544
- color: var(--disabled);
1580
+ color: var(--icon-button-text-color-disabled);
1545
1581
  background-color: var(--button-background-color-secondary-disabled);
1546
1582
  cursor: default;
1547
1583
  }
1548
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
+
1549
1590
  .IconButton--primary:is([aria-disabled='true'], [disabled]),
1550
1591
  .IconButton--primary:is([aria-disabled='true'], [disabled]):active {
1551
1592
  background-color: var(--button-background-color-primary-disabled);
@@ -1576,19 +1617,32 @@ a.IconButton {
1576
1617
  background-color: var(--icon-button-background-color-primary-active);
1577
1618
  }
1578
1619
 
1579
- .IconButton--secondary {
1620
+ .IconButton--secondary,
1621
+ .IconButton--tertiary,
1622
+ .IconButton--tertiary:is(:active) {
1580
1623
  border: 1px solid var(--icon-button-border-color-secondary);
1581
1624
  background-color: var(--icon-button-background-color-secondary);
1582
1625
  color: var(--icon-button-secondary-color);
1583
1626
  }
1584
1627
 
1585
- .IconButton--secondary:not([disabled]):not(
1586
- [aria-disabled='true']
1587
- ):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 {
1588
1632
  box-shadow: 0 0 0 1px var(--icon-button-outline-color-secondary);
1589
1633
  }
1590
1634
 
1591
- .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 {
1592
1646
  background-color: var(--icon-button-background-color-secondary-active);
1593
1647
  }
1594
1648
 
@@ -1640,7 +1694,8 @@ a.IconButton {
1640
1694
  border: 2px solid var(--icon-button-border-color-primary);
1641
1695
  }
1642
1696
 
1643
- .cauldron--theme-dark .IconButton--secondary {
1697
+ .cauldron--theme-dark .IconButton--secondary,
1698
+ .cauldron--theme-dark .IconButton--tertiary {
1644
1699
  border-width: 2px;
1645
1700
  }
1646
1701
 
@@ -1659,6 +1714,7 @@ a.IconButton {
1659
1714
 
1660
1715
  .cauldron--theme-dark .IconButton--primary:active,
1661
1716
  .cauldron--theme-dark .IconButton--secondary:active,
1717
+ .cauldron--theme-dark .IconButton--tertiary:active,
1662
1718
  .cauldron--theme-dark .IconButton--error:active {
1663
1719
  color: var(--icon-button-active-color);
1664
1720
  }
@@ -1679,6 +1735,10 @@ a.IconButton {
1679
1735
  .cauldron--theme-dark
1680
1736
  .IconButton--secondary:not([disabled]):not(
1681
1737
  [aria-disabled='true']
1738
+ ):hover:before,
1739
+ .cauldron--theme-dark
1740
+ .IconButton--tertiary:not([disabled]):not(
1741
+ [aria-disabled='true']
1682
1742
  ):hover:before {
1683
1743
  box-shadow: 0 0 0 1px var(--icon-button-outline-shadow-color),
1684
1744
  0 0 0 2px var(--icon-button-outline-color-secondary);
@@ -1695,6 +1755,11 @@ a.IconButton {
1695
1755
  0 0 0 4px var(--button-focus-ring-color, --focus);
1696
1756
  }
1697
1757
 
1758
+ .cauldron--theme-dark
1759
+ .IconButton--tertiary:is([disabled], [aria-disabled='true']) {
1760
+ color: #74818b;
1761
+ }
1762
+
1698
1763
  :root {
1699
1764
  --dialog-background-color: #fff;
1700
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.41dad212",
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",