@deque/cauldron-styles 6.4.2 → 6.5.0-canary.36dc15fa

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 +272 -57
  2. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -27,6 +27,7 @@
27
27
  --accent-success-dark: #57a711;
28
28
  --accent-error: #d93251;
29
29
  --accent-error-active: #c92e40;
30
+ --accent-danger-active: #fea7a6;
30
31
  --accent-danger: #fe6d6b;
31
32
  --accent-danger-light: #f7846c;
32
33
  --accent-warning: #ffdd75;
@@ -45,8 +46,8 @@
45
46
  --light-workspace-color: #f7f7f7;
46
47
  --focus-light: #b51ad1;
47
48
  --focus-dark: #f5a4ff;
48
- --issue-critical: var(--accent-danger);
49
- --issue-serious: var(--accent-warning);
49
+ --issue-critical: var(--accent-danger-active);
50
+ --issue-serious: var(--accent-caution);
50
51
  --issue-moderate: #f0c4f8;
51
52
  --issue-minor: var(--gray-20);
52
53
 
@@ -103,14 +104,6 @@
103
104
  /* fonts */
104
105
  --base-font-family: 'Roboto', Helvetica, Arial, sans-serif;
105
106
 
106
- /* font weight */
107
- --font-weight-thin: 100;
108
- --font-weight-light: 300;
109
- --font-weight-normal: 400;
110
- --font-weight-medium: 500;
111
- --font-weight-bold: 700;
112
- --font-weight-ultra-bold: 900;
113
-
114
107
  /* icon sizes */
115
108
  --icon-size: 24px;
116
109
 
@@ -151,6 +144,48 @@
151
144
  --focus: var(--focus-dark);
152
145
  }
153
146
 
147
+ :root {
148
+ --text-size-base: 16px;
149
+
150
+ /* headings */
151
+ --text-size-heading-1: 1.875rem; /* 30px */
152
+ --text-size-heading-2: 1.5rem; /* 24px */
153
+ --text-size-heading-3: 1.25rem; /* 20px */
154
+ --text-size-heading-4: 1.125rem; /* 18px */
155
+ --text-size-heading-5: 1rem; /* 16px */
156
+ --text-size-heading-6: 1rem; /* 16px */
157
+
158
+ --line-height-heading-1: 1.3;
159
+ --line-height-heading-2: 1.3;
160
+ --line-height-heading-3: 1.3;
161
+ --line-height-heading-4: 1.5;
162
+ --line-height-heading-5: 1.5;
163
+ --line-height-heading-6: 1.5;
164
+
165
+ /* weights */
166
+ --font-weight-thin: 100;
167
+ --font-weight-light: 300;
168
+ --font-weight-normal: 400;
169
+ --font-weight-medium: 500;
170
+ --font-weight-bold: 700;
171
+ --font-weight-ultra-bold: 900;
172
+
173
+ /* display */
174
+ --text-size-display-stat: 2.5rem; /* 36px */
175
+ --text-size-display-stat-small: 1.875; /* 30px */
176
+
177
+ --line-height-display-stat: 1.3;
178
+
179
+ /* buttons */
180
+ --text-size-button: 1rem; /* 16px */
181
+
182
+ /* body */
183
+ --text-size-body: 1rem; /* 16px */
184
+ --text-size-body-small: 0.875rem; /* 14px */
185
+ --line-height-body: 1.5;
186
+ --line-height-body-small: 1.7;
187
+ }
188
+
154
189
  :root {
155
190
  --workspace-background-color: #f0f2f5;
156
191
  }
@@ -236,7 +271,7 @@ a {
236
271
  }
237
272
 
238
273
  p {
239
- line-height: 1.618;
274
+ line-height: var(--line-height-body);
240
275
  }
241
276
 
242
277
  .cauldron--theme-dark h1,
@@ -1130,32 +1165,36 @@ textarea.Field--has-error:focus:hover,
1130
1165
  --button-background-color-error-active: var(--accent-error-active);
1131
1166
  --button-outline-color-error: var(--error);
1132
1167
 
1168
+ --button-text-size: var(--text-size-body);
1169
+ --button-thin-text-size: var(--text-size-body-small);
1133
1170
  --button-text-color-dark: var(--gray-90);
1134
- --button-text-color-light: var(--white);
1171
+ --button-text-color-light: #fff;
1172
+ --button-text-color-disabled: var(--disabled);
1135
1173
  --button-focus-ring-color: var(--focus-light);
1136
1174
  --button-thin-height: var(--target-size-minimum);
1137
1175
 
1138
- --button-height: 36px;
1176
+ --button-height: 2.25rem;
1139
1177
  }
1140
1178
 
1141
1179
  .Button--primary,
1142
1180
  .Button--secondary,
1181
+ .Button--tertiary,
1143
1182
  .Button--clear,
1144
1183
  .Button--error {
1145
1184
  border-radius: 3px;
1146
1185
  border: 1px solid transparent;
1147
- font-size: var(--text-size-small);
1186
+ font-size: var(--button-text-size);
1148
1187
  box-sizing: border-box;
1149
- padding: 0 16px;
1188
+ padding: 0 var(--space-small);
1150
1189
  position: relative;
1151
1190
  text-align: center;
1152
1191
  min-height: var(--button-height);
1153
- min-width: 100px;
1192
+ min-width: 6.25rem;
1154
1193
  display: inline-grid;
1155
1194
  grid-auto-flow: column;
1156
1195
  align-items: center;
1157
1196
  justify-items: center;
1158
- gap: 8px;
1197
+ gap: var(--space-smallest);
1159
1198
  }
1160
1199
 
1161
1200
  .Button--tag {
@@ -1169,6 +1208,7 @@ button.Link {
1169
1208
 
1170
1209
  .Button--primary:focus,
1171
1210
  .Button--secondary:focus,
1211
+ .Button--tertiary:focus,
1172
1212
  .Button--clear:focus,
1173
1213
  .Button--error:focus {
1174
1214
  outline: none;
@@ -1176,6 +1216,7 @@ button.Link {
1176
1216
 
1177
1217
  .Button--primary:before,
1178
1218
  .Button--secondary:before,
1219
+ .Button--tertiary:before,
1179
1220
  .Button--clear:before,
1180
1221
  .Button--error:before,
1181
1222
  .Button--tag:before {
@@ -1197,7 +1238,8 @@ button.Link {
1197
1238
  box-shadow: 0 0 0 1px var(--button-outline-color-primary);
1198
1239
  }
1199
1240
 
1200
- .Button--secondary:not([disabled]):not([aria-disabled='true']):hover:before {
1241
+ .Button--secondary:not([disabled]):not([aria-disabled='true']):hover:before,
1242
+ .Button--tertiary:not([disabled]):not([aria-disabled='true']):hover:before {
1201
1243
  box-shadow: 0 0 0 1px var(--button-outline-color-secondary);
1202
1244
  }
1203
1245
 
@@ -1211,6 +1253,7 @@ button.Link {
1211
1253
 
1212
1254
  .Button--primary:focus:before,
1213
1255
  .Button--secondary:focus:before,
1256
+ .Button--tertiary:focus:before,
1214
1257
  .Button--error:focus:before {
1215
1258
  box-shadow: 0 0 1px 2px var(--button-focus-ring-color, --focus);
1216
1259
  }
@@ -1229,19 +1272,29 @@ button.Link {
1229
1272
  background: var(--button-background-color-primary-active);
1230
1273
  }
1231
1274
 
1232
- .Button--secondary {
1275
+ .Button--secondary,
1276
+ .Button--tertiary {
1233
1277
  background-color: var(--button-background-color-secondary);
1234
1278
  color: var(--button-text-color-dark);
1235
1279
  border: 1px solid var(--field-border-color);
1236
1280
  }
1237
1281
 
1238
- .Button--secondary[aria-disabled='true'],
1239
- .Button--secondary[disabled] {
1240
- color: var(--disabled);
1282
+ .Button--tertiary:is(:not(:hover, :focus), [disabled], [aria-disabled='true']) {
1283
+ border-color: transparent;
1284
+ background-color: transparent;
1285
+ }
1286
+
1287
+ .Button--secondary:is([aria-disabled='true'], [disabled]) {
1288
+ color: var(--button-text-color-disabled);
1241
1289
  background-color: var(--button-background-color-secondary-disabled);
1242
1290
  }
1243
1291
 
1244
- .Button--secondary:not([disabled]):not([aria-disabled='true']):active {
1292
+ .Button--tertiary:is([aria-disabled='true'], [disabled]) {
1293
+ color: var(--button-text-color-disabled);
1294
+ }
1295
+
1296
+ .Button--secondary:not([disabled], [aria-disabled='true']):active,
1297
+ .Button--tertiary:not([disabled], [aria-disabled='true']):active {
1245
1298
  background-color: var(--button-background-color-secondary-active);
1246
1299
  }
1247
1300
 
@@ -1262,13 +1315,13 @@ button.Link {
1262
1315
  background-color: var(--button-background-color-error-active);
1263
1316
  }
1264
1317
 
1265
- .Button--tag[aria-disabled='true'],
1266
- .Button--tag[disabled] {
1318
+ .Button--tag:is([disabled], [aria-disabled='true']) {
1267
1319
  color: var(--disabled);
1268
1320
  }
1269
1321
 
1270
1322
  .Button--primary .Icon,
1271
1323
  .Button--secondary .Icon,
1324
+ .Button--tertiary .Icon,
1272
1325
  .Button--clear .Icon,
1273
1326
  .Button--error .Icon {
1274
1327
  margin: 0 -4px;
@@ -1279,16 +1332,20 @@ button.Link {
1279
1332
  height: calc(var(--button-thin-height) - 8px);
1280
1333
  }
1281
1334
 
1335
+ /* Usage of .DefinitionButton is deprecated and no longer supported */
1336
+
1282
1337
  .DefinitionButton {
1283
1338
  display: inline;
1284
1339
  vertical-align: baseline;
1285
1340
  position: relative;
1286
1341
  }
1287
1342
 
1343
+ /* Usage of .DefinitionButton is deprecated and no longer supported */
1344
+
1288
1345
  .DefinitionButton button {
1289
1346
  background-color: transparent;
1290
1347
  color: var(--text-color-base);
1291
- font-weight: var(--font-weight-normal);
1348
+ font-weight: var(--font-weight-medium);
1292
1349
  border-bottom: 1px dotted;
1293
1350
  display: inline-block;
1294
1351
  margin: 0 2px;
@@ -1302,9 +1359,9 @@ button.Link {
1302
1359
 
1303
1360
  .Button--thin {
1304
1361
  min-height: var(--button-thin-height);
1305
- min-width: 100px;
1306
- font-size: var(--text-size-smallest);
1307
- padding: 0 16px;
1362
+ min-width: 6.25rem;
1363
+ font-size: var(--button-thin-text-size);
1364
+ padding: 0 var(--space-small);
1308
1365
  }
1309
1366
 
1310
1367
  [class*='Button--'] + [class*='Button--'] {
@@ -1339,26 +1396,37 @@ button.Link {
1339
1396
  border: 2px solid var(--accent-light);
1340
1397
  }
1341
1398
 
1399
+ .cauldron--theme-dark .Button--tertiary {
1400
+ color: var(--accent-light);
1401
+ }
1402
+
1403
+ .cauldron--theme-dark .Button--tertiary:is(:hover, :active, :focus) {
1404
+ border: 2px solid var(--accent-light);
1405
+ }
1406
+
1407
+ .cauldron--theme-dark .Button--tertiary:not(:hover, :focus) {
1408
+ color: #fff;
1409
+ }
1410
+
1342
1411
  .cauldron--theme-dark .Button--error {
1343
1412
  background-color: var(--accent-medium);
1344
- color: var(--white);
1413
+ color: #fff;
1345
1414
  border: 2px solid var(--accent-danger);
1346
1415
  }
1347
1416
 
1348
- .cauldron--theme-dark .Button--primary[aria-disabled='true'],
1349
- .cauldron--theme-dark .Button--primary[disabled],
1350
- .cauldron--theme-dark .Button--secondary[aria-disabled='true'],
1351
- .cauldron--theme-dark .Button--secondary[disabled],
1352
- .cauldron--theme-dark .Button--error[aria-disabled='true'],
1353
- .cauldron--theme-dark .Button--error[disabled],
1354
- .cauldron--theme-dark .Button--tag[disabled] {
1417
+ .cauldron--theme-dark .Button--primary:is([disabled], [aria-disabled='true']),
1418
+ .cauldron--theme-dark .Button--secondary:is([disabled], [aria-disabled='true']),
1419
+ .cauldron--theme-dark .Button--error:is([disabled], [aria-disabled='true']),
1420
+ .cauldron--theme-dark .Button--tag:is([disabled], [aria-disabled='true']) {
1355
1421
  color: var(--dark-workspace-color);
1356
1422
  }
1357
1423
 
1358
1424
  .cauldron--theme-dark
1359
1425
  .Button--primary:not([disabled]):not([aria-disabled='true']):active,
1360
1426
  .cauldron--theme-dark
1361
- .Button--secondary:not([disabled]):not([aria-disabled='true']):active {
1427
+ .Button--secondary:not([disabled]):not([aria-disabled='true']):active,
1428
+ .cauldron--theme-dark
1429
+ .Button--tertiary:not([disabled]):not([aria-disabled='true']):active {
1362
1430
  color: var(--accent-medium);
1363
1431
  }
1364
1432
 
@@ -1373,7 +1441,7 @@ button.Link {
1373
1441
  }
1374
1442
 
1375
1443
  .cauldron--theme-dark button.Link:hover {
1376
- color: var(--white);
1444
+ color: #fff;
1377
1445
  }
1378
1446
 
1379
1447
  .cauldron--theme-dark
@@ -1383,7 +1451,9 @@ button.Link {
1383
1451
  }
1384
1452
 
1385
1453
  .cauldron--theme-dark
1386
- .Button--secondary:not([disabled]):not([aria-disabled='true']):hover:before {
1454
+ .Button--secondary:not([disabled]):not([aria-disabled='true']):hover:before,
1455
+ .cauldron--theme-dark
1456
+ .Button--tertiary:not([disabled]):not([aria-disabled='true']):hover:before {
1387
1457
  box-shadow: 0 0 0 1px var(--dark-workspace-color),
1388
1458
  0 0 0 2px var(--accent-light);
1389
1459
  }
@@ -1400,6 +1470,10 @@ button.Link {
1400
1470
  0 0 0 2px var(--accent-info);
1401
1471
  }
1402
1472
 
1473
+ .cauldron--theme-dark .Button--tertiary:is([disabled], [aria-disabled='true']) {
1474
+ color: #74818b;
1475
+ }
1476
+
1403
1477
  :root {
1404
1478
  /* Primary */
1405
1479
  --icon-button-primary-color: var(--button-text-color-light);
@@ -1431,6 +1505,8 @@ button.Link {
1431
1505
  --button-background-color-error-active
1432
1506
  );
1433
1507
 
1508
+ --icon-button-text-color-disabled: var(--button-text-color-disabled);
1509
+
1434
1510
  /* Deprecated variables */
1435
1511
  --icon-button-content-color-light-disabled: #ccc;
1436
1512
  --icon-button-background-color-light: #dadada;
@@ -1506,11 +1582,16 @@ a.IconButton {
1506
1582
 
1507
1583
  .IconButton--secondary:is([aria-disabled='true'], [disabled]),
1508
1584
  .IconButton--secondary:is([aria-disabled='true'], [disabled]):active {
1509
- color: var(--disabled);
1585
+ color: var(--icon-button-text-color-disabled);
1510
1586
  background-color: var(--button-background-color-secondary-disabled);
1511
1587
  cursor: default;
1512
1588
  }
1513
1589
 
1590
+ .IconButton--tertiary:is([aria-disabled='true'], [disabled]),
1591
+ .IconButton--tertiary:is([aria-disabled='true'], [disabled]):active {
1592
+ color: var(--icon-button-text-color-disabled);
1593
+ }
1594
+
1514
1595
  .IconButton--primary:is([aria-disabled='true'], [disabled]),
1515
1596
  .IconButton--primary:is([aria-disabled='true'], [disabled]):active {
1516
1597
  background-color: var(--button-background-color-primary-disabled);
@@ -1541,19 +1622,32 @@ a.IconButton {
1541
1622
  background-color: var(--icon-button-background-color-primary-active);
1542
1623
  }
1543
1624
 
1544
- .IconButton--secondary {
1625
+ .IconButton--secondary,
1626
+ .IconButton--tertiary,
1627
+ .IconButton--tertiary:is(:active) {
1545
1628
  border: 1px solid var(--icon-button-border-color-secondary);
1546
1629
  background-color: var(--icon-button-background-color-secondary);
1547
1630
  color: var(--icon-button-secondary-color);
1548
1631
  }
1549
1632
 
1550
- .IconButton--secondary:not([disabled]):not(
1551
- [aria-disabled='true']
1552
- ):hover:before {
1633
+ .IconButton--secondary:not([disabled]):not([aria-disabled='true']):hover:before,
1634
+ .IconButton--tertiary:not([disabled]):not([aria-disabled='true']):is(
1635
+ :hover
1636
+ ):before {
1553
1637
  box-shadow: 0 0 0 1px var(--icon-button-outline-color-secondary);
1554
1638
  }
1555
1639
 
1556
- .IconButton--secondary:active {
1640
+ .IconButton--tertiary:is(
1641
+ :not(:hover, :focus, :active),
1642
+ [disabled],
1643
+ [aria-disabled='true']
1644
+ ) {
1645
+ border-color: transparent;
1646
+ background-color: transparent;
1647
+ }
1648
+
1649
+ .IconButton--secondary:active,
1650
+ .IconButton--tertiary:active {
1557
1651
  background-color: var(--icon-button-background-color-secondary-active);
1558
1652
  }
1559
1653
 
@@ -1605,7 +1699,8 @@ a.IconButton {
1605
1699
  border: 2px solid var(--icon-button-border-color-primary);
1606
1700
  }
1607
1701
 
1608
- .cauldron--theme-dark .IconButton--secondary {
1702
+ .cauldron--theme-dark .IconButton--secondary,
1703
+ .cauldron--theme-dark .IconButton--tertiary {
1609
1704
  border-width: 2px;
1610
1705
  }
1611
1706
 
@@ -1624,6 +1719,7 @@ a.IconButton {
1624
1719
 
1625
1720
  .cauldron--theme-dark .IconButton--primary:active,
1626
1721
  .cauldron--theme-dark .IconButton--secondary:active,
1722
+ .cauldron--theme-dark .IconButton--tertiary:active,
1627
1723
  .cauldron--theme-dark .IconButton--error:active {
1628
1724
  color: var(--icon-button-active-color);
1629
1725
  }
@@ -1644,6 +1740,10 @@ a.IconButton {
1644
1740
  .cauldron--theme-dark
1645
1741
  .IconButton--secondary:not([disabled]):not(
1646
1742
  [aria-disabled='true']
1743
+ ):hover:before,
1744
+ .cauldron--theme-dark
1745
+ .IconButton--tertiary:not([disabled]):not(
1746
+ [aria-disabled='true']
1647
1747
  ):hover:before {
1648
1748
  box-shadow: 0 0 0 1px var(--icon-button-outline-shadow-color),
1649
1749
  0 0 0 2px var(--icon-button-outline-color-secondary);
@@ -1660,6 +1760,11 @@ a.IconButton {
1660
1760
  0 0 0 4px var(--button-focus-ring-color, --focus);
1661
1761
  }
1662
1762
 
1763
+ .cauldron--theme-dark
1764
+ .IconButton--tertiary:is([disabled], [aria-disabled='true']) {
1765
+ color: #74818b;
1766
+ }
1767
+
1663
1768
  :root {
1664
1769
  --dialog-background-color: #fff;
1665
1770
  --dialog-border-color: var(--gray-40);
@@ -4435,17 +4540,20 @@ fieldset.Panel {
4435
4540
  }
4436
4541
 
4437
4542
  .Breadcrumb__Link {
4438
- font-weight: 400;
4439
4543
  padding: 0;
4440
4544
  display: inline;
4441
4545
  }
4442
4546
 
4443
4547
  .Breadcrumb__Item {
4444
- font-weight: 500;
4548
+ font-weight: var(--font-weight-medium);
4445
4549
  color: var(--link-text-color);
4446
4550
  display: inline;
4447
4551
  }
4448
4552
 
4553
+ .Breadcrumb__Item:last-child {
4554
+ font-weight: var(--font-weight-normal);
4555
+ }
4556
+
4449
4557
  :root {
4450
4558
  --two-column-panel-border-color: var(--gray-40);
4451
4559
  --two-column-panel-background-color: #fff;
@@ -4834,7 +4942,7 @@ button.Accordion__trigger {
4834
4942
  --notice-background-color: var(--notice-info-color);
4835
4943
  --notice-border-color: var(--accent-dark);
4836
4944
  --notice-link-hover-color: var(--accent-medium);
4837
- --notice-icon-size: 1.2em;
4945
+ --notice-icon-size: 1rem;
4838
4946
  }
4839
4947
 
4840
4948
  .Notice--info {
@@ -4850,20 +4958,35 @@ button.Accordion__trigger {
4850
4958
  }
4851
4959
 
4852
4960
  .Notice {
4853
- display: block;
4854
- padding: var(--space-smaller) var(--space-small);
4961
+ display: grid;
4962
+ grid-template-columns: auto 1fr;
4963
+ gap: var(--space-small);
4964
+ padding: var(--space-large);
4965
+ align-items: start;
4966
+ border-radius: 4px;
4855
4967
  border: 1px solid var(--notice-border-color);
4856
4968
  background-color: var(--notice-background-color);
4857
4969
  color: var(--notice-text-color);
4858
- width: 100%;
4859
- font-size: var(--text-size-smaller);
4970
+ }
4971
+
4972
+ .Notice--condensed {
4973
+ grid-template-columns: 1fr;
4974
+ padding: var(--space-small);
4975
+ gap: var(--space-smallest);
4976
+ }
4977
+
4978
+ .Notice__content {
4979
+ grid-column: 2;
4980
+ }
4981
+
4982
+ .Notice--condensed .Notice__content {
4983
+ grid-column: 1;
4860
4984
  }
4861
4985
 
4862
4986
  .Notice .Notice__title,
4863
4987
  .Notice .Notice__title > :is(h1, h2, h3, h4, h5, h6) {
4864
4988
  display: flex;
4865
4989
  align-items: flex-start;
4866
- font-size: var(--text-size-small);
4867
4990
  font-weight: var(--notice-title-font-weight);
4868
4991
  margin: 0;
4869
4992
  padding: 0;
@@ -4871,7 +4994,7 @@ button.Accordion__trigger {
4871
4994
  color: var(--notice-title-text-color);
4872
4995
  }
4873
4996
 
4874
- .Notice .Notice__title + .Notice__content {
4997
+ .Notice .Notice__content {
4875
4998
  margin-top: var(--space-smallest);
4876
4999
  }
4877
5000
 
@@ -4890,7 +5013,6 @@ button.Accordion__trigger {
4890
5013
  .Notice button.Link,
4891
5014
  .Notice a.Link {
4892
5015
  color: var(--accent-dark);
4893
- font-size: var(--text-size-small);
4894
5016
  font-weight: var(--font-weight-light);
4895
5017
  text-decoration: underline;
4896
5018
  }
@@ -4911,6 +5033,15 @@ button.Accordion__trigger {
4911
5033
  margin-bottom: var(--space-smallest);
4912
5034
  }
4913
5035
 
5036
+ .Notice ul {
5037
+ margin: var(--space-smallest) 0;
5038
+ padding-left: var(--space-small);
5039
+ }
5040
+
5041
+ .Notice li {
5042
+ margin-bottom: var(--space-smallest);
5043
+ }
5044
+
4914
5045
  :root {
4915
5046
  --combobox-listbox-border-color: var(--gray-40);
4916
5047
  --combobox-listbox-background-color: #fff;
@@ -5354,3 +5485,87 @@ button.Accordion__trigger {
5354
5485
  -webkit-box-orient: vertical;
5355
5486
  white-space: normal;
5356
5487
  }
5488
+
5489
+ :root {
5490
+ --badge-text-color: var(--gray-90);
5491
+ --badge-background-color: transparent;
5492
+ --badge-border-color: var(--gray-30);
5493
+
5494
+ --badge-height: var(--button-height);
5495
+ --badge-small-height: 1.5rem;
5496
+
5497
+ --badge-font-size: 1rem;
5498
+ }
5499
+
5500
+ .cauldron--theme-dark {
5501
+ --badge-text-color: var(--white);
5502
+ --badge-background-color: var(--accent-medium);
5503
+ --badge-border-color: var(--stroke-dark);
5504
+ }
5505
+
5506
+ .Badge {
5507
+ color: var(--badge-text-color);
5508
+ background-color: var(--badge-background-color);
5509
+ border: 1px solid var(--badge-border-color);
5510
+ display: inline-flex;
5511
+ justify-content: center;
5512
+ align-items: center;
5513
+ padding: 0 var(--space-small) 0 var(--space-smaller);
5514
+ min-height: var(--badge-height);
5515
+ border-radius: var(--badge-height);
5516
+ font-size: var(--badge-font-size);
5517
+ }
5518
+
5519
+ .Badge--small {
5520
+ border-radius: var(--badge-small-height);
5521
+ min-height: var(--badge-small-height);
5522
+ }
5523
+
5524
+ .Badge__Label {
5525
+ margin-right: 3px;
5526
+ font-weight: var(--font-weight-medium);
5527
+ }
5528
+
5529
+ .Badge .Icon {
5530
+ margin: 0 var(--space-half) 0 -4px;
5531
+ }
5532
+
5533
+ :root {
5534
+ --impact-badge-critical-background-color: var(--issue-critical);
5535
+ --impact-badge-critical-border-color: var(--accent-error-disabled);
5536
+
5537
+ --impact-badge-serious-background-color: var(--issue-serious);
5538
+ --impact-badge-serious-border-color: var(--accent-warning);
5539
+
5540
+ --impact-badge-moderate-background-color: var(--issue-moderate);
5541
+ --impact-badge-moderate-border-color: #eb94ff;
5542
+
5543
+ --impact-badge-minor-background-color: var(--issue-minor);
5544
+ --impact-badge-minor-border-color: var(--gray-30);
5545
+
5546
+ --impact-badge-text-color: var(--gray-90);
5547
+ }
5548
+
5549
+ .ImpactBadge {
5550
+ --badge-text-color: var(--impact-badge-text-color);
5551
+ }
5552
+
5553
+ .ImpactBadge--critical {
5554
+ --badge-background-color: var(--impact-badge-critical-background-color);
5555
+ --badge-border-color: var(--impact-badge-critical-border-color);
5556
+ }
5557
+
5558
+ .ImpactBadge--serious {
5559
+ --badge-background-color: var(--impact-badge-serious-background-color);
5560
+ --badge-border-color: var(--impact-badge-serious-border-color);
5561
+ }
5562
+
5563
+ .ImpactBadge--moderate {
5564
+ --badge-background-color: var(--impact-badge-moderate-background-color);
5565
+ --badge-border-color: var(--impact-badge-moderate-border-color);
5566
+ }
5567
+
5568
+ .ImpactBadge--minor {
5569
+ --badge-background-color: var(--impact-badge-minor-background-color);
5570
+ --badge-border-color: var(--impact-badge-minor-border-color);
5571
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-styles",
3
- "version": "6.4.2",
3
+ "version": "6.5.0-canary.36dc15fa",
4
4
  "license": "MPL-2.0",
5
5
  "description": "deque cauldron pattern library styles",
6
6
  "repository": "https://github.com/dequelabs/cauldron",