qc-trousse-sdg 1.3.0-develop.6 → 1.3.0-develop.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qc-trousse-sdg",
3
- "version": "1.3.0-develop.6",
3
+ "version": "1.3.0-develop.7",
4
4
  "description": "Trousse de développement du Système de design gouvernemental du Québec",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1300,10 +1300,7 @@ qc-icon {
1300
1300
  background-color: var(--qc-color-blue-pale);
1301
1301
  }
1302
1302
  .qc-notice.qc-information .icon-container [role=img] {
1303
- background-color: var(--qc-color-blue-dark);
1304
- }
1305
- .qc-notice.qc-information .icon-container [role=img][data-img-type=success], .qc-notice.qc-information .icon-container [role=img][data-img-type=error] {
1306
- background-color: var(--qc-color-blue-regular);
1303
+ background-color: var(--qc-color-blue-piv);
1307
1304
  }
1308
1305
  .qc-notice.qc-warning .icon-container {
1309
1306
  background-color: var(--qc-color-yellow-pale);
@@ -1311,34 +1308,22 @@ qc-icon {
1311
1308
  .qc-notice.qc-warning .icon-container [role=img] {
1312
1309
  background-color: var(--qc-color-yellow-dark);
1313
1310
  }
1314
- .qc-notice.qc-warning .icon-container [role=img][data-img-type=success], .qc-notice.qc-warning .icon-container [role=img][data-img-type=error] {
1315
- background-color: var(--qc-color-yellow-regular);
1316
- }
1317
1311
  .qc-notice.qc-neutral .icon-container {
1318
1312
  background-color: var(--qc-color-grey-pale);
1319
1313
  }
1320
1314
  .qc-notice.qc-neutral .icon-container [role=img] {
1321
1315
  background-color: var(--qc-color-grey-dark);
1322
1316
  }
1323
- .qc-notice.qc-neutral .icon-container [role=img][data-img-type=success], .qc-notice.qc-neutral .icon-container [role=img][data-img-type=error] {
1324
- background-color: var(--qc-color-grey-regular);
1325
- }
1326
1317
  .qc-notice.qc-error .icon-container {
1327
1318
  background-color: var(--qc-color-red-pale);
1328
1319
  }
1329
1320
  .qc-notice.qc-error .icon-container [role=img] {
1330
- background-color: var(--qc-color-red-dark);
1331
- }
1332
- .qc-notice.qc-error .icon-container [role=img][data-img-type=success], .qc-notice.qc-error .icon-container [role=img][data-img-type=error] {
1333
1321
  background-color: var(--qc-color-red-regular);
1334
1322
  }
1335
1323
  .qc-notice.qc-success .icon-container {
1336
1324
  background-color: var(--qc-color-green-pale);
1337
1325
  }
1338
1326
  .qc-notice.qc-success .icon-container [role=img] {
1339
- background-color: var(--qc-color-green-dark);
1340
- }
1341
- .qc-notice.qc-success .icon-container [role=img][data-img-type=success], .qc-notice.qc-success .icon-container [role=img][data-img-type=error] {
1342
1327
  background-color: var(--qc-color-green-regular);
1343
1328
  }
1344
1329
 
@@ -1300,10 +1300,7 @@ qc-icon {
1300
1300
  background-color: var(--qc-color-blue-pale);
1301
1301
  }
1302
1302
  .qc-notice.qc-information .icon-container [role=img] {
1303
- background-color: var(--qc-color-blue-dark);
1304
- }
1305
- .qc-notice.qc-information .icon-container [role=img][data-img-type=success], .qc-notice.qc-information .icon-container [role=img][data-img-type=error] {
1306
- background-color: var(--qc-color-blue-regular);
1303
+ background-color: var(--qc-color-blue-piv);
1307
1304
  }
1308
1305
  .qc-notice.qc-warning .icon-container {
1309
1306
  background-color: var(--qc-color-yellow-pale);
@@ -1311,34 +1308,22 @@ qc-icon {
1311
1308
  .qc-notice.qc-warning .icon-container [role=img] {
1312
1309
  background-color: var(--qc-color-yellow-dark);
1313
1310
  }
1314
- .qc-notice.qc-warning .icon-container [role=img][data-img-type=success], .qc-notice.qc-warning .icon-container [role=img][data-img-type=error] {
1315
- background-color: var(--qc-color-yellow-regular);
1316
- }
1317
1311
  .qc-notice.qc-neutral .icon-container {
1318
1312
  background-color: var(--qc-color-grey-pale);
1319
1313
  }
1320
1314
  .qc-notice.qc-neutral .icon-container [role=img] {
1321
1315
  background-color: var(--qc-color-grey-dark);
1322
1316
  }
1323
- .qc-notice.qc-neutral .icon-container [role=img][data-img-type=success], .qc-notice.qc-neutral .icon-container [role=img][data-img-type=error] {
1324
- background-color: var(--qc-color-grey-regular);
1325
- }
1326
1317
  .qc-notice.qc-error .icon-container {
1327
1318
  background-color: var(--qc-color-red-pale);
1328
1319
  }
1329
1320
  .qc-notice.qc-error .icon-container [role=img] {
1330
- background-color: var(--qc-color-red-dark);
1331
- }
1332
- .qc-notice.qc-error .icon-container [role=img][data-img-type=success], .qc-notice.qc-error .icon-container [role=img][data-img-type=error] {
1333
1321
  background-color: var(--qc-color-red-regular);
1334
1322
  }
1335
1323
  .qc-notice.qc-success .icon-container {
1336
1324
  background-color: var(--qc-color-green-pale);
1337
1325
  }
1338
1326
  .qc-notice.qc-success .icon-container [role=img] {
1339
- background-color: var(--qc-color-green-dark);
1340
- }
1341
- .qc-notice.qc-success .icon-container [role=img][data-img-type=success], .qc-notice.qc-success .icon-container [role=img][data-img-type=error] {
1342
1327
  background-color: var(--qc-color-green-regular);
1343
1328
  }
1344
1329
 
@@ -69953,7 +69953,7 @@
69953
69953
  customElements.define("qc-doc-exemple", create_custom_element(Exemple, {"caption":{"attribute":"caption"},"codeTargetId":{"attribute":"code-target-id"},"hideCode":{"attribute":"hide-code","type":"Boolean"},"rawCode":{"attribute":"raw-code"}}, [], [], false));
69954
69954
 
69955
69955
  if (document.getElementById("version")) {
69956
- document.getElementById("version").textContent = `v1.3.0-develop.6`;
69956
+ document.getElementById("version").textContent = `v1.3.0-develop.7`;
69957
69957
  }
69958
69958
 
69959
69959
  // Show maskable "general alert" component
@@ -1,4 +1,5 @@
1
1
  @use "qc-sdg-lib" as *;
2
+ @use "sass:list" as *;
2
3
 
3
4
  @mixin qc-notice-title() {
4
5
  h1,h2,h3,h4,h5,h6,[role=heading] {
@@ -47,20 +48,16 @@
47
48
  }
48
49
 
49
50
  @each $type, $color in (
50
- "information": "blue",
51
- "warning": "yellow",
52
- "neutral": "grey",
53
- "error": "red",
54
- "success": "green",
51
+ "information": ("blue", "piv"),
52
+ "warning": ("yellow" , "dark"),
53
+ "neutral": ("grey", "dark"),
54
+ "error": ("red", "regular"),
55
+ "success": ("green","regular"),
55
56
  ) {
56
57
  &.qc-#{$type} .icon-container {
57
- background-color: token-value(color,$color,pale);
58
+ background-color: token-value(color, nth($color, 1), pale);
58
59
  [role=img] {
59
- background-color: token-value(color,$color,dark);
60
-
61
- &[data-img-type=success], &[data-img-type=error] {
62
- background-color: token-value(color,$color,regular);
63
- }
60
+ background-color: token-value(color,nth($color, 1), nth($color, 2));
64
61
  }
65
62
  }
66
63
  }