@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,8 +1,8 @@
1
1
  .s-badge {
2
2
  --_ba-as: unset;
3
3
  --_ba-bc: var(--bc-medium);
4
- --_ba-bg: var(--black-050);
5
- --_ba-fc: var(--black-700);
4
+ --_ba-bg: var(--black-150);
5
+ --_ba-fc: var(--black-500);
6
6
  --_ba-fs: var(--fs-caption);
7
7
  --_ba-g: 0.3em;
8
8
  --_ba-lh: 2;
@@ -52,26 +52,26 @@
52
52
  &&__gold,
53
53
  &&__silver,
54
54
  &&__bronze {
55
- --_ba-fc: var(--black-700);
55
+ --_ba-fc: var(--black-500);
56
56
 
57
57
  .highcontrast-mode({
58
- --_ba-fc: var(--black-900);
58
+ --_ba-fc: var(--black-600);
59
59
  });
60
60
  }
61
61
 
62
62
  &&__gold {
63
- --_ba-bc: var(--gold-darker);
64
- --_ba-bg: var(--gold-lighter);
63
+ --_ba-bc: var(--gold-400);
64
+ --_ba-bg: var(--gold-100);
65
65
  }
66
66
 
67
67
  &&__silver {
68
- --_ba-bc: var(--silver-darker);
69
- --_ba-bg: var(--silver-lighter);
68
+ --_ba-bc: var(--silver-400);
69
+ --_ba-bg: var(--silver-100);
70
70
  }
71
71
 
72
72
  &&__bronze {
73
- --_ba-bc: var(--bronze-darker);
74
- --_ba-bg: var(--bronze-lighter);
73
+ --_ba-bc: var(--bronze-400);
74
+ --_ba-bg: var(--bronze-100);
75
75
  }
76
76
 
77
77
  // Number counts
@@ -93,39 +93,39 @@
93
93
  }
94
94
 
95
95
  &&__bounty {
96
- --_ba-bg: var(--blue-600);
96
+ --_ba-bg: var(--blue-500);
97
97
  }
98
98
 
99
99
  &&__important {
100
- --_ba-bg: var(--red-600);
100
+ --_ba-bg: var(--red-500);
101
101
  }
102
102
 
103
103
  &&__rep {
104
104
  --_ba-bc: var(--green-400);
105
- --_ba-fc: var(--green-500);
105
+ --_ba-fc: var(--green-400);
106
106
  }
107
107
 
108
108
  &&__rep-down {
109
109
  --_ba-bc: var(--red-400);
110
- --_ba-fc: var(--red-500);
110
+ --_ba-fc: var(--red-400);
111
111
  }
112
112
 
113
113
  &&__votes:not(&__answered) {
114
- --_ba-bc: var(--black-150);
115
- --_ba-fc: var(--black-700);
114
+ --_ba-bc: var(--black-250);
115
+ --_ba-fc: var(--black-500);
116
116
  }
117
117
 
118
118
  // Users
119
119
  &&__admin {
120
- --_ba-bc: var(--theme-primary-200);
121
- --_ba-bg: var(--theme-primary-075);
122
- --_ba-fc: var(--theme-primary-800);
120
+ --_ba-bc: var(--theme-primary-300);
121
+ --_ba-bg: var(--theme-primary-200);
122
+ --_ba-fc: var(--theme-primary-600);
123
123
  }
124
124
 
125
125
  &&__moderator {
126
- --_ba-bc: var(--theme-secondary-200);
127
- --_ba-bg: var(--theme-secondary-075);
128
- --_ba-fc: var(--theme-secondary-800);
126
+ --_ba-bc: var(--theme-secondary-300);
127
+ --_ba-bg: var(--theme-secondary-200);
128
+ --_ba-fc: var(--theme-secondary-600);
129
129
  --_ba-g: calc(var(--su-static4) - var(--su-static1)); // 3px
130
130
  // :before icon
131
131
  --_ba-before-h: calc(var(--su-static16) - var(--su-static2)); // 14px
@@ -166,9 +166,9 @@
166
166
 
167
167
  &&__staff {
168
168
  // Staff badges are always "Stack Overflow Orange"
169
- --_ba-bc: var(--orange-300);
170
- --_ba-bg: var(--orange-100);
171
- --_ba-fc: var(--orange-900);
169
+ --_ba-bc: var(--orange-400);
170
+ --_ba-bg: var(--orange-300);
171
+ --_ba-fc: var(--orange-600);
172
172
  }
173
173
 
174
174
  // VARIANTS
@@ -180,13 +180,13 @@
180
180
  }
181
181
 
182
182
  &&__danger {
183
- --_ba-bc: var(--red-600);
184
- --_ba-bg: var(--red-100);
185
- --_ba-fc: var(--red-900);
183
+ --_ba-bc: var(--red-500);
184
+ --_ba-bg: var(--red-300);
185
+ --_ba-fc: var(--red-600);
186
186
 
187
187
  &.s-badge__filled {
188
- --_ba-bg: var(--red-500);
189
- --_ba-fc: @white;
188
+ --_ba-bg: var(--red-400);
189
+ --_ba-fc: var(--_white-static);
190
190
 
191
191
  .highcontrast-mode({
192
192
  --_ba-fc: var(--white);
@@ -194,24 +194,24 @@
194
194
  }
195
195
  }
196
196
  &&__info {
197
- --_ba-bc: var(--blue-600);
198
- --_ba-bg: var(--blue-100);
199
- --_ba-fc: var(--blue-900);
197
+ --_ba-bc: var(--blue-500);
198
+ --_ba-bg: var(--blue-300);
199
+ --_ba-fc: var(--blue-600);
200
200
  }
201
201
 
202
202
  &&__warning {
203
- --_ba-bc: var(--yellow-600);
204
- --_ba-bg: var(--yellow-100);
205
- --_ba-fc: var(--yellow-900);
203
+ --_ba-bc: var(--yellow-500);
204
+ --_ba-bg: var(--yellow-300);
205
+ --_ba-fc: var(--yellow-600);
206
206
  }
207
207
 
208
208
  &&__muted {
209
- --_ba-bc: var(--black-600);
210
- --_ba-bg: var(--black-100);
211
- --_ba-fc: var(--black-900);
209
+ --_ba-bc: var(--black-500);
210
+ --_ba-bg: var(--black-225);
211
+ --_ba-fc: var(--black-600);
212
212
 
213
213
  &.s-badge__filled {
214
- --_ba-bg: var(--black-700);
214
+ --_ba-bg: var(--black-500);
215
215
  --_ba-fc: var(--white);
216
216
  }
217
217
  }
@@ -24,7 +24,18 @@ const template = ({ component, testid }: any) => html`
24
24
  `;
25
25
 
26
26
  describe("badge", () => {
27
- // Award badges (Default/badge counts)
27
+ // Base badge
28
+ runComponentTests({
29
+ type: "visual",
30
+ baseClass: "s-badge",
31
+ children: {
32
+ default: `base badge`,
33
+ },
34
+ tag: "span",
35
+ template,
36
+ });
37
+
38
+ // Award badges
28
39
  variants.blings.map((bling) => {
29
40
  runComponentTests({
30
41
  type: "visual",
@@ -32,9 +43,14 @@ describe("badge", () => {
32
43
  variants: [bling],
33
44
  children: {
34
45
  default: `<span class="s-award-bling s-award-bling__${bling}">
35
- Altruist
46
+ with bling
36
47
  </span>`,
37
48
  },
49
+ options: {
50
+ ...defaultOptions,
51
+ includeNullVariant: false,
52
+ includeNullModifier: false,
53
+ },
38
54
  tag: "span",
39
55
  template,
40
56
  });
@@ -50,6 +66,7 @@ describe("badge", () => {
50
66
  },
51
67
  options: {
52
68
  ...defaultOptions,
69
+ includeNullVariant: false,
53
70
  includeNullModifier: false,
54
71
  },
55
72
  tag: "span",
@@ -81,9 +98,6 @@ describe("badge", () => {
81
98
  type: "visual",
82
99
  baseClass: "s-badge",
83
100
  variants: variants.states.filled,
84
- modifiers: {
85
- primary: ["icon"],
86
- },
87
101
  children: {
88
102
  default: "filled",
89
103
  // icon: Icons.IconEyeOffSm, // TODO fix the icon imports
@@ -108,6 +122,10 @@ describe("badge", () => {
108
122
  children: {
109
123
  default: "user badge",
110
124
  },
125
+ options: {
126
+ ...defaultOptions,
127
+ includeNullVariant: false,
128
+ },
111
129
  tag: "span",
112
130
  template,
113
131
  });
@@ -122,6 +140,10 @@ describe("badge", () => {
122
140
  children: {
123
141
  default: "size badge",
124
142
  },
143
+ options: {
144
+ ...defaultOptions,
145
+ includeNullModifier: false,
146
+ },
125
147
  tag: "span",
126
148
  template,
127
149
  });
@@ -39,7 +39,6 @@ describe("block-link", () => {
39
39
  ...defaultOptions,
40
40
  includeNullModifier: false,
41
41
  },
42
- skippedTestids: ["s-block-link-dark-danger"],
43
42
  template: blockLinkTemplate,
44
43
  });
45
44
 
@@ -58,12 +57,6 @@ describe("block-link", () => {
58
57
  ...defaultOptions,
59
58
  includeNullVariant: false,
60
59
  },
61
- skippedTestids: [
62
- "s-block-link-dark-left-is-selected-danger",
63
- "s-block-link-dark-right-is-selected-danger",
64
- "s-block-link-light-left-is-selected-danger",
65
- "s-block-link-light-right-is-selected-danger",
66
- ],
67
60
  template: blockLinkTemplate,
68
61
  });
69
62
  });
@@ -1,22 +1,22 @@
1
1
  a.s-block-link,
2
2
  .s-block-link {
3
- @bl-bs: inset var(--_li-block-bs-offset-x, 3px) 0 0 var(--theme-primary-color);
3
+ @bl-bs: inset var(--_li-block-bs-offset-x, 3px) 0 0 var(--theme-primary);
4
4
  --_bl-bg: transparent;
5
- --_bl-fc: var(--black-600);
6
- --_bl-fc-hover: var(--black-800);
5
+ --_bl-fc: var(--black-500);
6
+ --_bl-fc-hover: var(--black-600);
7
7
  --_bl-fc-visited: var(--_bl-fc);
8
8
 
9
9
  // CONTEXTUAL STYLES
10
10
  .dark-mode({
11
11
  &.is-selected {
12
- --_bl-bg: var(--black-025);
12
+ --_bl-bg: var(--black-100);
13
13
  }
14
14
  });
15
15
 
16
16
  // STATES
17
17
  &.is-selected {
18
- --_bl-bg: var(--black-050);
19
- --_bl-fc: var(--black-800);
18
+ --_bl-bg: var(--black-150);
19
+ --_bl-fc: var(--black-600);
20
20
 
21
21
  font-weight: bold;
22
22
  }
@@ -46,8 +46,8 @@ a.s-block-link,
46
46
 
47
47
  // VARIANTS
48
48
  &&__danger {
49
- --_bl-fc: var(--red-500);
50
- --_bl-fc-hover: var(--red-700);
49
+ --_bl-fc: var(--red-400);
50
+ --_bl-fc-hover: var(--red-500);
51
51
  }
52
52
 
53
53
  &:active,
@@ -34,7 +34,7 @@
34
34
  }
35
35
 
36
36
  align-items: flex-start;
37
- color: var(--black-200);
37
+ color: var(--black-300);
38
38
  display: flex;
39
39
  flex-wrap: wrap;
40
40
  font-size: var(--fs-caption);
@@ -25,8 +25,5 @@ describe("button", () => {
25
25
  excludedTestids: [
26
26
  /primary-outlined/, // This combination is not supported
27
27
  ],
28
- skippedTestids: [
29
- /s-btn-dark/, // TODO remove when contrast bugs are fixed
30
- ],
31
28
  });
32
29
  });
@@ -49,8 +49,8 @@
49
49
  --_bu-badge-o: 0.8;
50
50
 
51
51
  &:not(.s-btn__primary):not(.s-btn__muted):not(.s-btn__danger):not(.is-selected):not(.s-btn__link):not(.s-btn__unset) {
52
- --_bu-bg-hover: var(--theme-secondary-100);
53
- --_bu-filled-bg-hover: var(--theme-secondary-300);
52
+ --_bu-bg-hover: var(--theme-secondary-300);
53
+ --_bu-filled-bg-hover: var(--theme-secondary-400);
54
54
  }
55
55
  });
56
56
 
@@ -232,26 +232,26 @@
232
232
  }
233
233
 
234
234
  &&__danger {
235
- --_bu-bg-active: var(--red-100);
236
- --_bu-bg-hover: var(--red-050);
237
- --_bu-bg-selected: var(--red-200);
238
- --_bu-fc: var(--red-600);
235
+ --_bu-bg-active: var(--red-300);
236
+ --_bu-bg-hover: var(--red-200);
237
+ --_bu-bg-selected: var(--red-300);
238
+ --_bu-fc: var(--red-500);
239
239
  --_bu-fc-active: var(--_bu-fc);
240
- --_bu-fc-hover: var(--red-700);
241
- --_bu-fc-selected: var(--red-900);
240
+ --_bu-fc-hover: var(--red-500);
241
+ --_bu-fc-selected: var(--red-600);
242
242
  --_bu-focus-ring: 0 0 0 var(--su-static4) var(--focus-ring-error);
243
243
  --_bu-filled-bc: transparent;
244
244
  --_bu-filled-bc-selected: var(--_bu-filled-bc);
245
- --_bu-filled-bg: var(--red-500);
246
- --_bu-filled-bg-active: var(--red-700);
247
- --_bu-filled-bg-hover: var(--red-600);
248
- --_bu-filled-bg-selected: var(--red-800);
245
+ --_bu-filled-bg: var(--red-400);
246
+ --_bu-filled-bg-active: var(--red-500);
247
+ --_bu-filled-bg-hover: var(--red-500);
248
+ --_bu-filled-bg-selected: var(--red-600);
249
249
  --_bu-filled-fc: var(--white);
250
250
  --_bu-filled-fc-active: var(--_bu-filled-fc);
251
251
  --_bu-filled-fc-hover: var(--_bu-filled-fc);
252
252
  --_bu-filled-fc-selected: var(--_bu-filled-fc);
253
- --_bu-outlined-bc: var(--red-500);
254
- --_bu-outlined-bc-selected: var(--red-700);
253
+ --_bu-outlined-bc: var(--red-400);
254
+ --_bu-outlined-bc-selected: var(--red-500);
255
255
  --_bu-outlined-bg-selected: var(--_bu-bg-selected);
256
256
  --_bu-outlined-fc-selected: var(--_bu-fc-selected);
257
257
 
@@ -274,39 +274,39 @@
274
274
  }
275
275
 
276
276
  &&__muted {
277
- --_bu-bg-active: var(--black-050);
278
- --_bu-bg-hover: var(--black-025);
279
- --_bu-bg-selected: var(--black-075);
280
- --_bu-fc: var(--black-700);
277
+ --_bu-bg-active: var(--black-150);
278
+ --_bu-bg-hover: var(--black-100);
279
+ --_bu-bg-selected: var(--black-200);
280
+ --_bu-fc: var(--black-500);
281
281
  --_bu-fc-active: var(--_bu-fc);
282
- --_bu-fc-hover: var(--black-700);
283
- --_bu-fc-selected: var(--black-700);
282
+ --_bu-fc-hover: var(--black-500);
283
+ --_bu-fc-selected: var(--black-500);
284
284
  --_bu-focus-ring: 0 0 0 var(--su-static4) var(--focus-ring-muted);
285
285
  // The filled modifier on the muted button is deprecated and is to be
286
286
  // removed in Stacks Classic v2
287
287
  --_bu-filled-bc: transparent;
288
288
  --_bu-filled-bc-selected: var(--_bu-filled-bc);
289
- --_bu-filled-bg: var(--black-100);
290
- --_bu-filled-bg-active: var(--black-200);
291
- --_bu-filled-bg-hover: var(--black-150);
289
+ --_bu-filled-bg: var(--black-225);
290
+ --_bu-filled-bg-active: var(--black-300);
291
+ --_bu-filled-bg-hover: var(--black-250);
292
292
  --_bu-filled-bg-selected: var(--black-350);
293
- --_bu-filled-fc: var(--black-700);
293
+ --_bu-filled-fc: var(--black-500);
294
294
  --_bu-filled-fc-active: var(--_bu-filled-fc);
295
295
  --_bu-filled-fc-hover: var(--_bu-filled-fc);
296
- --_bu-filled-fc-selected: var(--black-800);
297
- --_bu-outlined-bc: var(--black-200);
298
- --_bu-outlined-bc-selected: var(--black-200);
296
+ --_bu-filled-fc-selected: var(--black-600);
297
+ --_bu-outlined-bc: var(--black-300);
298
+ --_bu-outlined-bc-selected: var(--black-300);
299
299
  --_bu-outlined-bg-selected: var(--_bu-bg-selected);
300
300
  --_bu-outlined-fc-selected: var(--_bu-fc-selected);
301
301
 
302
302
  .highcontrast-mode({
303
- --_bu-bg-hover: var(--black-100);
303
+ --_bu-bg-hover: var(--black-225);
304
304
  // The filled modifier on the muted button is deprecated and is to be
305
305
  // removed in Stacks Classic v2
306
306
  --_bu-filled-bg: var(--black-400);
307
- --_bu-filled-bg-active: var(--black-600);
308
- --_bu-filled-bg-hover: var(--black-500);
309
- --_bu-filled-bg-selected: var(--black-700);
307
+ --_bu-filled-bg-active: var(--black-500);
308
+ --_bu-filled-bg-hover: var(--black-400);
309
+ --_bu-filled-bg-selected: var(--black-500);
310
310
  --_bu-filled-fc: var(--white);
311
311
  --_bu-filled-fc-selected: var(--_bu-filled-fc);
312
312
 
@@ -328,9 +328,9 @@
328
328
  --_bu-number-fc: var(--theme-button-primary-number-color);
329
329
 
330
330
  .dark-mode({
331
- --_bu-bg: var(--theme-secondary-300);
331
+ --_bu-bg: var(--theme-secondary-400);
332
332
  --_bu-bg-active: var(--theme-secondary-400);
333
- --_bu-bg-hover: var(--theme-secondary-350);
333
+ --_bu-bg-hover: var(--theme-secondary-400);
334
334
  --_bu-fc: var(--black);
335
335
  --_bu-fc-active: var(--_bu-fc);
336
336
  --_bu-fc-hover: var(--_bu-fc);
@@ -345,8 +345,8 @@
345
345
 
346
346
  .highcontrast-dark-mode({
347
347
  --_bu-bg: var(--theme-secondary-400);
348
- --_bu-bg-active: var(--theme-secondary-600);
349
- --_bu-bg-hover: var(--theme-secondary-500);
348
+ --_bu-bg-active: var(--theme-secondary-500);
349
+ --_bu-bg-hover: var(--theme-secondary-400);
350
350
  --_bu-fc: var(--white);
351
351
  --_bu-number-fc: var(--black);
352
352
  });
@@ -375,18 +375,18 @@
375
375
  &&__google {
376
376
  --_bu-bc: var(--bc-medium);
377
377
  --_bu-bg: var(--white);
378
- --_bu-bg-active: var(--black-050);
379
- --_bu-bg-hover: var(--black-025);
378
+ --_bu-bg-active: var(--black-150);
379
+ --_bu-bg-hover: var(--black-100);
380
380
  --_bu-fc: var(--fc-medium);
381
381
  --_bu-fc-active: var(--fc-dark);
382
- --_bu-fc-hover: var(--black-800);
382
+ --_bu-fc-hover: var(--black-600);
383
383
  --_bu-focus-ring: 0 0 0 var(--su-static4) var(--focus-ring-muted);
384
384
  }
385
385
 
386
386
  &&__github {
387
- --_bu-bg: var(--black-750);
387
+ --_bu-bg: var(--black-600);
388
388
  --_bu-bg-active: var(--black);
389
- --_bu-bg-hover: var(--black-800);
389
+ --_bu-bg-hover: var(--black-600);
390
390
  --_bu-fc: var(--white);
391
391
  --_bu-fc-active: var(--white);
392
392
  --_bu-fc-hover: var(--white);
@@ -39,7 +39,7 @@ describe("button", () => {
39
39
  tag: "button",
40
40
  template: ({ component, testid }) => html`
41
41
  <div
42
- class="bg-black-100 d-inline-flex ai-center jc-center hs1 ws2 p8"
42
+ class="bg-black-225 d-inline-flex ai-center jc-center hs1 ws2 p8"
43
43
  data-testid="${testid}"
44
44
  >
45
45
  ${component}
@@ -29,11 +29,6 @@ import "../../index";
29
29
  ...defaultOptions,
30
30
  testidSuffix: `${state}-${type}`,
31
31
  },
32
- // TODO remove when contrast bugs are fixed
33
- skippedTestids: [
34
- /^s-check-control-dark-has-error-(checked|unchecked)-(checkbox|radio)$/,
35
- /^s-check-control-light-has-(success|warning)-(checked|unchecked)-(checkbox|radio)$/,
36
- ],
37
32
  });
38
33
  });
39
34
  });
@@ -12,7 +12,7 @@ import "../../index";
12
12
  global: ["has-warning", "has-error", "has-success"],
13
13
  },
14
14
  attributes: {
15
- class: "bg-black-100 hs1 ws2 p8",
15
+ class: "bg-black-225 hs1 ws2 p8",
16
16
  },
17
17
  children: {
18
18
  default: `
@@ -1,8 +1,8 @@
1
1
  .s-checkbox,
2
2
  .s-radio {
3
3
  --_ch-baw: var(--su-static1);
4
- --_ch-bc: var(--bc-darker);
5
- --_ch-bc-focus: var(--theme-secondary-300);
4
+ --_ch-bc: var(--bc-dark);
5
+ --_ch-bc-focus: var(--theme-secondary-400);
6
6
  --_ch-bg: var(--white);
7
7
  --_ch-bg-image: unset;
8
8
  --_ch-bs-focus: 0 0 0 var(--su-static4) var(--focus-ring);
@@ -51,9 +51,9 @@
51
51
  // CONTEXTUAL STYLES
52
52
  .highcontrast-dark-mode({
53
53
  &:checked, &:indeterminate {
54
- --_ch-bc: var(--blue-700) !important;
54
+ --_ch-bc: var(--blue-500) !important;
55
55
  --_ch-bc-focus: var(--_ch-bc);
56
- --_ch-bg: var(--blue-300);
56
+ --_ch-bg: var(--blue-400);
57
57
  }
58
58
  });
59
59
 
@@ -93,7 +93,7 @@
93
93
  // CONTEXTUAL STYLES
94
94
  .highcontrast-dark-mode({
95
95
  &:checked {
96
- --_ch-bc: var(--blue-300);
96
+ --_ch-bc: var(--blue-400);
97
97
  outline: var(--su-static1) solid var(--black);
98
98
  }
99
99
  });
@@ -5,7 +5,7 @@ import "../../index";
5
5
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6
6
  const checkboxTemplate = ({ component, testid }: any) =>
7
7
  html`<div
8
- class="d-inline-flex ai-center jc-center bg-black-100 hs1 ws1 p8"
8
+ class="d-inline-flex ai-center jc-center bg-black-225 hs1 ws1 p8"
9
9
  data-testid="${testid}"
10
10
  >
11
11
  ${component}
@@ -1,9 +1,9 @@
1
1
  .s-code-block {
2
- --_cb-line-numbers-bg: var(--black-050);
2
+ --_cb-line-numbers-bg: var(--black-150);
3
3
 
4
4
  // CONTEXTUAL STYLES
5
5
  .dark-mode({
6
- --_cb-line-numbers-bg: var(--black-025);
6
+ --_cb-line-numbers-bg: var(--black-100);
7
7
  });
8
8
 
9
9
  // CHILD COMPONENTS
@@ -93,7 +93,7 @@
93
93
  border-color: var(--bc-medium);
94
94
  border-style: solid;
95
95
  border-width: 0 var(--su-static1) 0 0;
96
- color: var(--black-300);
96
+ color: var(--black-350);
97
97
  float: left;
98
98
  margin: calc(var(--su12) * -1);
99
99
  margin-right: var(--su12);
@@ -24,7 +24,6 @@ import "../../index";
24
24
  ${component}
25
25
  </div>
26
26
  `,
27
- skippedTestids: [/^.*-is-disabled$/],
28
27
  });
29
28
  });
30
29
  });
@@ -18,7 +18,7 @@ import "../../index";
18
18
  },
19
19
  template: ({ component, testid }) => html`
20
20
  <div
21
- class="bg-black-100 d-inline-flex ai-center jc-center hs1 ws2 p8
21
+ class="bg-black-225 d-inline-flex ai-center jc-center hs1 ws2 p8
22
22
  ${isDisabled ? "is-disabled" : ""}"
23
23
  data-testid="${testid}"
24
24
  >
@@ -1,6 +1,6 @@
1
1
  .s-input-fill {
2
- --_if-bc: var(--bc-darker);
3
- --_if-bg: var(--black-050);
2
+ --_if-bc: var(--bc-dark);
3
+ --_if-bg: var(--black-150);
4
4
  --_if-blw: 0;
5
5
  --_if-blr: 0;
6
6
  --_if-brr: 0;
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  .has-warning & {
15
- --_ii-fc: var(--yellow-600);
15
+ --_ii-fc: var(--yellow-500);
16
16
  }
17
17
 
18
18
  .is-disabled & {
@@ -20,7 +20,7 @@
20
20
  }
21
21
 
22
22
  .is-readonly & {
23
- --_ii-fc: var(--black-200);
23
+ --_ii-fc: var(--black-300);
24
24
 
25
25
  .highcontrast-mode({
26
26
  --_ii-fc: var(--fc-light);
@@ -16,20 +16,20 @@
16
16
 
17
17
  // MODIFIERS
18
18
  .has-error & {
19
- --_im-fc: var(--red-500);
20
- --_im-a-fc: var(--red-800);
21
- --_im-a-fc-hover: var(--red-900);
19
+ --_im-fc: var(--red-400);
20
+ --_im-a-fc: var(--red-600);
21
+ --_im-a-fc-hover: var(--red-600);
22
22
  }
23
23
 
24
24
  .has-success & {
25
- --_im-fc: var(--green-500);
26
- --_im-a-fc: var(--green-800);
27
- --_im-a-fc-hover: var(--green-900);
25
+ --_im-fc: var(--green-400);
26
+ --_im-a-fc: var(--green-600);
27
+ --_im-a-fc-hover: var(--green-600);
28
28
  }
29
29
 
30
30
  .has-warning & {
31
- --_im-fc: var(--yellow-800);
32
- --_im-a-fc: var(--yellow-900);
31
+ --_im-fc: var(--yellow-600);
32
+ --_im-a-fc: var(--yellow-600);
33
33
  }
34
34
 
35
35
  // CHILD ELEMENTS