@stackoverflow/stacks 1.10.2 → 2.0.0-rc.0

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 (95) hide show
  1. package/README.md +15 -0
  2. package/dist/css/stacks.css +7428 -4429
  3. package/dist/css/stacks.min.css +1 -1
  4. package/lib/atomic/__snapshots__/color-new.less.test.ts.snap +3015 -0
  5. package/lib/atomic/__snapshots__/color.less.test.ts.snap +2886 -0
  6. package/lib/atomic/border.less +0 -258
  7. package/lib/atomic/color.less +26 -200
  8. package/lib/atomic/color.less.test.ts +12 -0
  9. package/lib/atomic/misc.less +7 -6
  10. package/lib/atomic/typography.less +0 -7
  11. package/lib/atomic/v1/__snapshots__/border.less.test.ts.snap +552 -0
  12. package/lib/atomic/v1/__snapshots__/color.less.test.ts.snap +6756 -0
  13. package/lib/atomic/v1/__snapshots__/typography.less.test.ts.snap +22 -0
  14. package/lib/atomic/v1/border.less +210 -0
  15. package/lib/atomic/v1/border.less.test.ts +14 -0
  16. package/lib/atomic/v1/color.less +183 -0
  17. package/lib/atomic/v1/color.less.test.ts +14 -0
  18. package/lib/atomic/v1/typography.less +8 -0
  19. package/lib/atomic/v1/typography.less.test.ts +14 -0
  20. package/lib/components/activity-indicator/activity-indicator.a11y.test.ts +1 -8
  21. package/lib/components/activity-indicator/activity-indicator.less +4 -4
  22. package/lib/components/anchor/anchor.a11y.test.ts +0 -5
  23. package/lib/components/anchor/anchor.less +4 -4
  24. package/lib/components/anchor/anchor.visual.test.ts +1 -1
  25. package/lib/components/avatar/avatar.less +2 -2
  26. package/lib/components/award-bling/award-bling.less +3 -3
  27. package/lib/components/badge/badge.a11y.test.ts +2 -12
  28. package/lib/components/badge/badge.less +40 -40
  29. package/lib/components/badge/badge.visual.test.ts +27 -5
  30. package/lib/components/block-link/block-link.a11y.test.ts +0 -7
  31. package/lib/components/block-link/block-link.less +8 -8
  32. package/lib/components/breadcrumbs/breadcrumbs.less +1 -1
  33. package/lib/components/button/button.a11y.test.ts +0 -3
  34. package/lib/components/button/button.less +40 -40
  35. package/lib/components/button/button.visual.test.ts +1 -1
  36. package/lib/components/check-control/check-control.a11y.test.ts +0 -5
  37. package/lib/components/check-control/check-control.visual.test.ts +1 -1
  38. package/lib/components/checkbox_radio/checkbox_radio.less +5 -5
  39. package/lib/components/checkbox_radio/checkbox_radio.visual.test.ts +1 -1
  40. package/lib/components/code-block/code-block.less +3 -3
  41. package/lib/components/description/description.a11y.test.ts +0 -1
  42. package/lib/components/description/description.visual.test.ts +1 -1
  43. package/lib/components/input-fill/input-fill.less +2 -2
  44. package/lib/components/input-icon/input-icon.less +2 -2
  45. package/lib/components/input-message/input-message.less +8 -8
  46. package/lib/components/input_textarea/input_textarea.less +6 -6
  47. package/lib/components/label/label.less +11 -11
  48. package/lib/components/link/link.a11y.test.ts +0 -8
  49. package/lib/components/link/link.less +8 -8
  50. package/lib/components/link-preview/link-preview.less +9 -9
  51. package/lib/components/menu/menu.less +3 -3
  52. package/lib/components/modal/modal.less +5 -4
  53. package/lib/components/navigation/navigation.less +11 -11
  54. package/lib/components/notice/notice.less +48 -48
  55. package/lib/components/pagination/pagination.less +3 -3
  56. package/lib/components/popover/popover.less +2 -2
  57. package/lib/components/popover/tooltip.test.ts +1 -1
  58. package/lib/components/post-summary/post-summary.less +40 -40
  59. package/lib/components/progress-bar/progress-bar.less +15 -15
  60. package/lib/components/prose/prose.less +15 -15
  61. package/lib/components/select/select.less +5 -5
  62. package/lib/components/sidebar-widget/sidebar-widget.less +12 -12
  63. package/lib/components/table/table.less +7 -7
  64. package/lib/components/tag/tag.less +25 -25
  65. package/lib/components/toggle-switch/toggle-switch.a11y.test.ts +0 -4
  66. package/lib/components/toggle-switch/toggle-switch.less +4 -4
  67. package/lib/components/toggle-switch/toggle-switch.visual.test.ts +12 -11
  68. package/lib/components/topbar/topbar.less +34 -34
  69. package/lib/components/uploader/uploader.less +15 -15
  70. package/lib/components/user-card/user-card.less +7 -7
  71. package/lib/exports/__snapshots__/color-mixins.less.test.ts.snap +539 -0
  72. package/lib/exports/__snapshots__/color.less.test.ts.snap +762 -0
  73. package/lib/exports/color-mixins.less +280 -0
  74. package/lib/exports/color-mixins.less.test.ts +150 -0
  75. package/lib/exports/color-sets.less +620 -0
  76. package/lib/exports/color.less +57 -0
  77. package/lib/exports/color.less.test.ts +12 -0
  78. package/lib/exports/exports.less +2 -1
  79. package/lib/exports/mixins.less +17 -5
  80. package/lib/exports/theme.less +85 -0
  81. package/lib/exports/v1/__snapshots__/constants-colors.less.test.ts.snap +902 -0
  82. package/lib/exports/v1/constants-colors.less +893 -0
  83. package/lib/exports/v1/constants-colors.less.test.ts +12 -0
  84. package/lib/stacks-static.less +5 -0
  85. package/lib/test/axe-apca/README.md +34 -0
  86. package/lib/test/axe-apca/index.ts +3 -0
  87. package/lib/test/axe-apca/package.wip.json +30 -0
  88. package/lib/test/axe-apca/src/apca-w3.d.ts +3 -0
  89. package/lib/test/axe-apca/src/axe-apca.test.ts +155 -0
  90. package/lib/test/axe-apca/src/axe-apca.ts +212 -0
  91. package/lib/test/less-test-utils.ts +28 -0
  92. package/lib/test/test-utils.ts +18 -1
  93. package/lib/tsconfig.json +1 -0
  94. package/package.json +14 -7
  95. package/lib/exports/constants-colors.less +0 -1100
@@ -1,7 +1,7 @@
1
1
  .s-input,
2
2
  .s-textarea {
3
- --_in-bc: var(--bc-darker);
4
- --_in-bc-focus: var(--theme-secondary-300);
3
+ --_in-bc: var(--bc-dark);
4
+ --_in-bc-focus: var(--theme-secondary-400);
5
5
  --_in-bg: var(--white);
6
6
  --_in-br: var(--br-md);
7
7
  --_in-bs-focus: 0 0 0 var(--su-static4) var(--focus-ring);
@@ -12,7 +12,7 @@
12
12
  --_in-o: unset;
13
13
  --_in-px: 0.7em;
14
14
  --_in-py: 0.6em;
15
- --_in-placeholder-fc: var(--black-200);
15
+ --_in-placeholder-fc: var(--black-300);
16
16
 
17
17
  // CONTEXTUAL STYLES
18
18
  @supports (-webkit-overflow-scrolling: touch) {
@@ -49,9 +49,9 @@
49
49
  --_in-fc: var(--fc-light);
50
50
  });
51
51
 
52
- --_in-bg: var(--black-050);
52
+ --_in-bg: var(--black-150);
53
53
  --_in-bc: var(--bc-light);
54
- --_in-fc: var(--black-200);
54
+ --_in-fc: var(--black-300);
55
55
  --_in-fc-focus: var(--_in-fc);
56
56
  }
57
57
 
@@ -59,7 +59,7 @@
59
59
  in,
60
60
  { .highcontrast-mode({ --_in-bc: var(--red-400); }); },
61
61
  { .highcontrast-mode({ --_in-bc: var(--green-400); }); },
62
- { .highcontrast-mode({ --_in-bc: var(--yellow-600); }); }
62
+ { .highcontrast-mode({ --_in-bc: var(--yellow-500); }); }
63
63
  );
64
64
 
65
65
  // Sizes
@@ -44,7 +44,7 @@
44
44
  // Default styling is optional.
45
45
  &--status { // TODO convert to require parent class for styling [1]
46
46
  --_la-status-b: none;
47
- --_la-status-bg: var(--black-050);
47
+ --_la-status-bg: var(--black-150);
48
48
  --_la-status-fc: var(--fc-medium);
49
49
 
50
50
  .highcontrast-mode({
@@ -53,27 +53,27 @@
53
53
 
54
54
  // TODO: include child component class (without variant) on selector
55
55
  &__beta {
56
- --_la-status-bg: var(--blue-100);
57
- --_la-status-fc: var(--blue-700);
56
+ --_la-status-bg: var(--blue-300);
57
+ --_la-status-fc: var(--blue-500);
58
58
  }
59
59
 
60
60
  &__new {
61
- --_la-status-bg: var(--green-100);
62
- --_la-status-fc: var(--green-700);
61
+ --_la-status-bg: var(--green-300);
62
+ --_la-status-fc: var(--green-500);
63
63
 
64
64
  .dark-mode({
65
- --_la-status-bg: var(--green-050);
66
- --_la-status-fc: var(--green-800);
65
+ --_la-status-bg: var(--green-200);
66
+ --_la-status-fc: var(--green-600);
67
67
  });
68
68
  }
69
69
 
70
70
  &__required {
71
- --_la-status-bg: var(--red-100);
72
- --_la-status-fc: var(--red-700);
71
+ --_la-status-bg: var(--red-300);
72
+ --_la-status-fc: var(--red-500);
73
73
 
74
74
  .dark-mode({
75
- --_la-status-bg: var(--red-050);
76
- --_la-status-fc: var(--red-800);
75
+ --_la-status-bg: var(--red-200);
76
+ --_la-status-fc: var(--red-600);
77
77
  });
78
78
  }
79
79
 
@@ -24,13 +24,5 @@ describe("link", () => {
24
24
  attributes: {
25
25
  href: "#",
26
26
  },
27
- skippedTestids: [
28
- "s-link-dark", // TODO fix contrast issue
29
- "s-link-dark-dropdown", // TODO fix contrast issue
30
- "s-link-dark-danger", // TODO fix contrast issue
31
- "s-link-dark-danger-dropdown", // TODO fix contrast issue
32
- "s-link-dark-underlined", // TODO fix contrast issue
33
- "s-link-dark-underlined-dropdown", // TODO fix contrast issue
34
- ],
35
27
  });
36
28
  });
@@ -60,15 +60,15 @@ a,
60
60
 
61
61
  // VARIANTS
62
62
  &__danger {
63
- --_li-fc: var(--red-500);
63
+ --_li-fc: var(--red-400);
64
64
  --_li-fc-hover: var(--red-400);
65
- --_li-fc-visited: var(--red-600);
65
+ --_li-fc-visited: var(--red-500);
66
66
  }
67
67
 
68
68
  &__grayscale {
69
- --_li-fc: var(--black-800);
70
- --_li-fc-hover: var(--black-900);
71
- --_li-fc-visited: var(--black-700);
69
+ --_li-fc: var(--black-600);
70
+ --_li-fc-hover: var(--black-600);
71
+ --_li-fc-visited: var(--black-500);
72
72
  }
73
73
 
74
74
  &__inherit {
@@ -78,9 +78,9 @@ a,
78
78
  }
79
79
 
80
80
  &__muted {
81
- --_li-fc: var(--black-500);
82
- --_li-fc-hover: var(--black-600);
83
- --_li-fc-visited: var(--black-700);
81
+ --_li-fc: var(--black-400);
82
+ --_li-fc-hover: var(--black-500);
83
+ --_li-fc-visited: var(--black-500);
84
84
  }
85
85
  }
86
86
 
@@ -17,15 +17,15 @@
17
17
  & &--footer {
18
18
  a {
19
19
  &:visited {
20
- color: var(--black-700);
20
+ color: var(--black-500);
21
21
  }
22
22
  &:hover,
23
23
  &:active,
24
24
  &:focus {
25
- color: var(--black-600);
25
+ color: var(--black-500);
26
26
  }
27
27
 
28
- color: var(--black-500);
28
+ color: var(--black-400);
29
29
  cursor: pointer;
30
30
  text-decoration: none;
31
31
  }
@@ -51,14 +51,14 @@
51
51
  & &--details {
52
52
  margin-top: var(--_lp-details-mt);
53
53
 
54
- color: var(--black-500);
54
+ color: var(--black-400);
55
55
  font-size: var(--fs-caption);
56
56
  }
57
57
 
58
58
  & &--footer {
59
59
  flex-direction: var(--_lp-footer-fd);
60
60
 
61
- background: var(--black-025);
61
+ background: var(--black-100);
62
62
  border-bottom-left-radius: var(--br-sm);
63
63
  border-bottom-right-radius: var(--br-sm);
64
64
  border-top: var(--su-static1) solid var(--bc-medium);
@@ -69,7 +69,7 @@
69
69
  }
70
70
 
71
71
  & &--header {
72
- background: var(--black-025);
72
+ background: var(--black-100);
73
73
  border-bottom: var(--su-static1) solid var(--bc-medium);
74
74
  border-top-left-radius: var(--br-sm);
75
75
  border-top-right-radius: var(--br-sm);
@@ -78,7 +78,7 @@
78
78
  }
79
79
 
80
80
  & &--icon {
81
- color: var(--black-800); // Set the default color of the integration's icon. Most likely this will be overridden by the integration icon's native colors.
81
+ color: var(--black-600); // Set the default color of the integration's icon. Most likely this will be overridden by the integration icon's native colors.
82
82
  margin-right: var(--su8);
83
83
  }
84
84
 
@@ -86,11 +86,11 @@
86
86
  padding-left: var(--_lp-misc-pl);
87
87
  padding-top: var(--_lp-misc-pt);
88
88
 
89
- color: var(--black-500);
89
+ color: var(--black-400);
90
90
  }
91
91
 
92
92
  & &--title {
93
- color: var(--black-900);
93
+ color: var(--black-600);
94
94
  font-size: var(--fs-body3);
95
95
  font-weight: bold;
96
96
  }
@@ -5,8 +5,8 @@
5
5
 
6
6
  // CONTEXTUAL STYLES
7
7
  .dark-mode({
8
- --_me-divider-bg: var(--bc-lightest);
9
- --_me-label-btc: var(--bc-lightest);
8
+ --_me-divider-bg: var(--bc-light);
9
+ --_me-label-btc: var(--bc-light);
10
10
  });
11
11
 
12
12
  // CHILD ELEMENTS
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  & &--title {
30
- color: var(--black-600);
30
+ color: var(--black-500);
31
31
  font-size: var(--fs-fine);
32
32
  padding: var(--su8) var(--su12);
33
33
  text-transform: uppercase;
@@ -1,5 +1,6 @@
1
1
  .s-modal {
2
- --_mo-bg: fade(@black-900, 50%); // Background remains fixed
2
+ // TODO Replace this Less variable with a CSS variable or other solution
3
+ --_mo-bg: fade(.set-black()[600], 50%); // Background remains fixed
3
4
  --_mo-hmx: unset;
4
5
  --_mo-wmx: unset;
5
6
  --_mo-close-t: var(--su8);
@@ -37,8 +38,8 @@
37
38
  // VARIANTS
38
39
  &.has-danger,
39
40
  &&__danger {
40
- --_mo-bg: darken(fade(@red-900, 50%), 23%);
41
- --_mo-header-fc: var(--red-600);
41
+ --_mo-bg: darken(fade(.set-red()[600], 50%), 18%);
42
+ --_mo-header-fc: var(--red-500);
42
43
  }
43
44
 
44
45
  // CHILD ELEMENTS
@@ -61,7 +62,7 @@
61
62
 
62
63
  & &--dialog {
63
64
  .dark-mode({
64
- --_mo-dialog-bg: var(--black-100);
65
+ --_mo-dialog-bg: var(--black-225);
65
66
  });
66
67
 
67
68
  padding: var(--_mo-dialog-pt) var(--su24) var(--su24);
@@ -4,22 +4,22 @@
4
4
  --_na-p: var(--su2) 0;
5
5
  --_na-gap: var(--su4);
6
6
  --_na-item-bg: none;
7
- --_na-item-fc: var(--black-600);
7
+ --_na-item-fc: var(--black-500);
8
8
  --_na-item-fs: unset;
9
9
  --_na-item-p: var(--su6) var(--su12);
10
10
  --_na-item-py: var(--su12);
11
11
  --_na-item-ws: nowrap;
12
- --_na-item-bg-hover: var(--black-075);
12
+ --_na-item-bg-hover: var(--black-200);
13
13
  --_na-item-fc-hover: var(--_na-item-fc);
14
- --_na-item-selected-bg: var(--theme-primary-color);
14
+ --_na-item-selected-bg: var(--theme-primary);
15
15
  --_na-item-selected-fc: var(--white);
16
- --_na-item-selected-bg-hover: var(--theme-primary-600);
16
+ --_na-item-selected-bg-hover: var(--theme-primary-500);
17
17
  --_na-title-mt: var(--su16);
18
18
 
19
19
  // CONTEXTUAL STYLES
20
20
  .highcontrast-mode({
21
- --_na-item-bg-hover: var(--black-600);
22
- --_na-item-fc-hover: var(--black-100);
21
+ --_na-item-bg-hover: var(--black-500);
22
+ --_na-item-fc-hover: var(--black-225);
23
23
  });
24
24
 
25
25
  // MODIFIERS
@@ -44,14 +44,14 @@
44
44
 
45
45
  // VARIANTS
46
46
  &&__muted {
47
- --_na-item-selected-bg: var(--black-050);
48
- --_na-item-selected-fc: var(--black-800);
47
+ --_na-item-selected-bg: var(--black-150);
48
+ --_na-item-selected-fc: var(--black-600);
49
49
  --_na-item-selected-bg-hover: var(--_na-item-bg);
50
50
 
51
51
  .highcontrast-mode({
52
- --_na-item-selected-bg: var(--black-800);
53
- --_na-item-selected-fc: var(--black-050);
54
- --_na-item-selected-bg-hover: var(--black-900);
52
+ --_na-item-selected-bg: var(--black-600);
53
+ --_na-item-selected-fc: var(--black-150);
54
+ --_na-item-selected-bg-hover: var(--black-600);
55
55
  });
56
56
  }
57
57
 
@@ -1,9 +1,9 @@
1
1
  .construct-notice-component(@baseClass) {
2
2
  --_no-bc: var(--bc-medium);
3
- --_no-bg: var(--black-050);
3
+ --_no-bg: var(--black-150);
4
4
  --_no-fc: var(--fc-medium);
5
- --_no-btn-bg-focus: var(--black-100);
6
- --_no-btn-bg-active: var(--black-150);
5
+ --_no-btn-bg-focus: var(--black-225);
6
+ --_no-btn-bg-active: var(--black-250);
7
7
 
8
8
  // MODIFIERS
9
9
  &:not(&__important) {
@@ -22,10 +22,10 @@
22
22
 
23
23
  &__important {
24
24
  --_no-bc: var(--_no-bg);
25
- --_no-bg: var(--black-700);
25
+ --_no-bg: var(--black-500);
26
26
  --_no-fc: var(--white);
27
- --_no-btn-bg-focus: var(--black-800);
28
- --_no-btn-bg-active: var(--black-900);
27
+ --_no-btn-bg-focus: var(--black-600);
28
+ --_no-btn-bg-active: var(--black-600);
29
29
 
30
30
  .highcontrast-mode({
31
31
  --_no-bc: var(--_no-bg);
@@ -34,61 +34,61 @@
34
34
 
35
35
  // VARIANTS
36
36
  &__danger {
37
- --_no-bc: var(--red-200);
38
- --_no-bg: var(--red-050);
39
- --_no-btn-bg-active: var(--red-200);
40
- --_no-btn-bg-focus: var(--red-100);
37
+ --_no-bc: var(--red-300);
38
+ --_no-bg: var(--red-200);
39
+ --_no-btn-bg-active: var(--red-300);
40
+ --_no-btn-bg-focus: var(--red-300);
41
41
 
42
42
  &:not(.@{baseClass}__important) {
43
43
  .highcontrast-mode({
44
- --_no-bg: var(--red-200);
44
+ --_no-bg: var(--red-300);
45
45
  });
46
46
  }
47
47
 
48
48
  &.@{baseClass}__important {
49
49
  --_no-bc: var(--_no-bg);
50
- --_no-bg: var(--red-500);
51
- --_no-btn-bg-active: var(--red-700);
52
- --_no-btn-bg-focus: var(--red-600);
50
+ --_no-bg: var(--red-400);
51
+ --_no-btn-bg-active: var(--red-500);
52
+ --_no-btn-bg-focus: var(--red-500);
53
53
 
54
54
  .dark-mode({
55
55
  --_no-bg: var(--red-400);
56
- --_no-fc: var(--black-900);
56
+ --_no-fc: var(--black-600);
57
57
  });
58
58
 
59
59
  .highcontrast-dark-mode({
60
- --_no-bg: var(--red-500);
60
+ --_no-bg: var(--red-400);
61
61
  --_no-fc: var(--white);
62
62
  });
63
63
  }
64
64
  }
65
65
 
66
66
  &__info {
67
- --_no-bc: var(--theme-secondary-150);
68
- --_no-bg: var(--theme-secondary-050);
69
- --_no-btn-bg-focus: var(--theme-secondary-100);
70
- --_no-btn-bg-active: var(--theme-secondary-150);
71
- --_no-code-bg: var(--theme-secondary-150);
67
+ --_no-bc: var(--theme-secondary-300);
68
+ --_no-bg: var(--theme-secondary-200);
69
+ --_no-btn-bg-focus: var(--theme-secondary-300);
70
+ --_no-btn-bg-active: var(--theme-secondary-300);
71
+ --_no-code-bg: var(--theme-secondary-300);
72
72
 
73
73
  &:not(.@{baseClass}__important) {
74
74
  .highcontrast-mode({
75
- --_no-bg: var(--theme-secondary-100);
75
+ --_no-bg: var(--theme-secondary-300);
76
76
  });
77
77
 
78
78
  .highcontrast-dark-mode({
79
- --_no-bg: var(--theme-secondary-100);
79
+ --_no-bg: var(--theme-secondary-300);
80
80
  });
81
81
  }
82
82
 
83
83
  &.@{baseClass}__important {
84
84
  --_no-bc: var(--_no-bg);
85
85
  --_no-bg: var(--theme-secondary-400);
86
- --_no-btn-bg-active: var(--theme-secondary-600);
87
- --_no-btn-bg-focus: var(--theme-secondary-500);
86
+ --_no-btn-bg-active: var(--theme-secondary-500);
87
+ --_no-btn-bg-focus: var(--theme-secondary-400);
88
88
 
89
89
  .dark-mode({
90
- --_no-bg: var(--theme-secondary-300);
91
- --_no-fc: var(--black-900);
90
+ --_no-bg: var(--theme-secondary-400);
91
+ --_no-fc: var(--black-600);
92
92
  });
93
93
 
94
94
  .highcontrast-dark-mode({
@@ -99,63 +99,63 @@
99
99
  }
100
100
 
101
101
  &__success {
102
- --_no-bc: var(--green-200);
103
- --_no-bg: var(--green-050);
104
- --_no-btn-bg-active: var(--green-200);
105
- --_no-btn-bg-focus: var(--green-100);
102
+ --_no-bc: var(--green-300);
103
+ --_no-bg: var(--green-200);
104
+ --_no-btn-bg-active: var(--green-300);
105
+ --_no-btn-bg-focus: var(--green-300);
106
106
 
107
107
  &:not(.@{baseClass}__important) {
108
108
  .highcontrast-mode({
109
- --_no-bg: var(--green-200);
109
+ --_no-bg: var(--green-300);
110
110
  });
111
111
  }
112
112
 
113
113
  &.@{baseClass}__important {
114
114
  --_no-bc: var(--_no-bg);
115
115
  --_no-bg: var(--green-400);
116
- --_no-fc: var(--black-900);
117
- --_no-btn-bg-active: var(--green-600);
118
- --_no-btn-bg-focus: var(--green-500);
116
+ --_no-fc: var(--black-600);
117
+ --_no-btn-bg-active: var(--green-500);
118
+ --_no-btn-bg-focus: var(--green-400);
119
119
 
120
120
  .dark-mode({
121
- --_no-bg: var(--green-500);
121
+ --_no-bg: var(--green-400);
122
122
  --_no-fc: var(--white);
123
123
  });
124
124
 
125
125
  .highcontrast-mode({
126
- --_no-bg: var(--green-500);
126
+ --_no-bg: var(--green-400);
127
127
  --_no-fc: var(--white);
128
128
  });
129
129
  }
130
130
  }
131
131
 
132
132
  &__warning {
133
- --_no-bc: var(--yellow-300);
134
- --_no-bg: var(--yellow-050);
135
- --_no-btn-bg-active: var(--yellow-300);
136
- --_no-btn-bg-focus: var(--yellow-200);
137
- --_no-code-bg: var(--yellow-200);
133
+ --_no-bc: var(--yellow-400);
134
+ --_no-bg: var(--yellow-200);
135
+ --_no-btn-bg-active: var(--yellow-400);
136
+ --_no-btn-bg-focus: var(--yellow-300);
137
+ --_no-code-bg: var(--yellow-300);
138
138
 
139
139
  &:not(.@{baseClass}__important) {
140
140
  .highcontrast-mode({
141
- --_no-bg: var(--yellow-200);
141
+ --_no-bg: var(--yellow-300);
142
142
  });
143
143
  }
144
144
 
145
145
  &.@{baseClass}__important {
146
146
  --_no-bc: var(--_no-bg);
147
147
  --_no-bg: var(--yellow-400);
148
- --_no-fc: var(--black-900);
149
- --_no-btn-bg-active: var(--yellow-600);
150
- --_no-btn-bg-focus: var(--yellow-500);
148
+ --_no-fc: var(--black-600);
149
+ --_no-btn-bg-active: var(--yellow-500);
150
+ --_no-btn-bg-focus: var(--yellow-400);
151
151
 
152
152
  .dark-mode({
153
- --_no-bg: var(--yellow-600);
153
+ --_no-bg: var(--yellow-500);
154
154
  --_no-fc: var(--white);
155
155
  });
156
156
 
157
157
  .highcontrast-mode({
158
- --_no-bg: var(--yellow-700);
158
+ --_no-bg: var(--yellow-500);
159
159
  --_no-fc: var(--white);
160
160
  });
161
161
  }
@@ -3,8 +3,8 @@
3
3
  --_pa-item-bg: transparent;
4
4
  --_pa-item-bc: var(--bc-medium);
5
5
  --_pa-item-fc: var(--fc-medium);
6
- --_pa-item-bg-hover: var(--black-100);
7
- --_pa-item-bc-hover: var(--bc-darker);
6
+ --_pa-item-bg-hover: var(--black-225);
7
+ --_pa-item-bc-hover: var(--bc-dark);
8
8
  --_pa-item-fc-hover: var(--fc-dark);
9
9
 
10
10
  // CONTEXTUAL STYLES
@@ -12,7 +12,7 @@
12
12
 
13
13
  // MODIFIERS
14
14
  &.is-selected {
15
- --_pa-item-bg: var(--theme-primary-color);
15
+ --_pa-item-bg: var(--theme-primary);
16
16
  --_pa-item-bc: transparent;
17
17
  --_pa-item-fc: var(--white);
18
18
  }
@@ -20,10 +20,10 @@
20
20
 
21
21
  // CONTEXTUAL STYLES
22
22
  .dark-mode({
23
- --_po-bg: var(--black-075);
23
+ --_po-bg: var(--black-200);
24
24
  --_po-bc: var(--bc-light);
25
25
  --_po-bs: var(--bs-lg);
26
- --_po-arrow-fc: var(--black-075);
26
+ --_po-arrow-fc: var(--black-200);
27
27
  });
28
28
 
29
29
  // MODIFIERS
@@ -41,7 +41,7 @@ describe("tooltip", () => {
41
41
  <svg
42
42
  data-testid="svg"
43
43
  aria-hidden="true"
44
- class="bg-red-500"
44
+ class="bg-red-400"
45
45
  width="18"
46
46
  height="18"
47
47
  viewBox="0 0 18 18"