@stackoverflow/stacks 2.0.0-rc.4 → 2.0.0-rc.5
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/dist/components/code-block/code-block.fixtures.d.ts +2 -0
- package/dist/css/stacks.css +51 -20
- package/dist/css/stacks.min.css +1 -1
- package/lib/atomic/__snapshots__/color.less.test.ts.snap +246 -0
- package/lib/components/anchor/anchor.visual.test.ts +1 -1
- package/lib/components/avatar/avatar.visual.test.ts +1 -1
- package/lib/components/button/button.a11y.test.ts +1 -1
- package/lib/components/button/button.visual.test.ts +1 -1
- package/lib/components/code-block/code-block.a11y.test.ts +30 -0
- package/lib/components/code-block/code-block.fixtures.ts +88 -0
- package/lib/components/code-block/code-block.visual.test.ts +20 -0
- package/lib/components/navigation/navigation.a11y.test.ts +80 -0
- package/lib/components/navigation/navigation.visual.test.ts +101 -0
- package/lib/components/notice/notice.a11y.test.ts +1 -1
- package/lib/components/pagination/pagination.a11y.test.ts +1 -1
- package/lib/components/toast/toast.a11y.test.ts +1 -1
- package/lib/exports/__snapshots__/color-mixins.less.test.ts.snap +16 -10
- package/lib/exports/__snapshots__/color.less.test.ts.snap +215 -147
- package/lib/exports/color.less +17 -3
- package/package.json +3 -3
package/lib/exports/color.less
CHANGED
|
@@ -5,9 +5,6 @@ body {
|
|
|
5
5
|
--_o-disabled-static: 0.5;
|
|
6
6
|
--_black-static: .set-black()[default];
|
|
7
7
|
--_white-static: .set-white()[default];
|
|
8
|
-
// Create aliased utility variables
|
|
9
|
-
.create-colors(.sets-aliased-utility-variables());
|
|
10
|
-
.theme-variables();
|
|
11
8
|
|
|
12
9
|
&,
|
|
13
10
|
&.themed,
|
|
@@ -16,6 +13,23 @@ body {
|
|
|
16
13
|
}
|
|
17
14
|
}
|
|
18
15
|
|
|
16
|
+
// Create aliased utility variables, theme variables
|
|
17
|
+
body:not(.theme-highcontrast),
|
|
18
|
+
body.theme-highcontrast {
|
|
19
|
+
&:not(.theme-dark),
|
|
20
|
+
&.theme-dark .theme-light__forced,
|
|
21
|
+
&.theme-system .theme-light__forced,
|
|
22
|
+
&.theme-dark,
|
|
23
|
+
&:not(.theme-dark) .theme-dark__forced {
|
|
24
|
+
&,
|
|
25
|
+
&.themed,
|
|
26
|
+
& .themed {
|
|
27
|
+
.theme-variables();
|
|
28
|
+
.create-colors(.sets-aliased-utility-variables());
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
19
33
|
// Light, dark mode
|
|
20
34
|
body:not(.theme-highcontrast) {
|
|
21
35
|
// Light mode
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/StackExchange/Stacks.git"
|
|
7
7
|
},
|
|
8
|
-
"version": "2.0.0-rc.
|
|
8
|
+
"version": "2.0.0-rc.5",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
11
|
"lib"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@testing-library/user-event": "^14.4.3",
|
|
55
55
|
"@types/cssbeautify": "^0.3.2",
|
|
56
56
|
"@types/less": "^3.0.3",
|
|
57
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
57
|
+
"@typescript-eslint/eslint-plugin": "^6.7.0",
|
|
58
58
|
"@typescript-eslint/parser": "^6.6.0",
|
|
59
59
|
"@web/dev-server-esbuild": "^0.4.1",
|
|
60
60
|
"@web/dev-server-rollup": "^0.5.2",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"docsearch.js": "^2.6.3",
|
|
70
70
|
"eleventy-plugin-highlightjs": "^1.1.0",
|
|
71
71
|
"eleventy-plugin-nesting-toc": "^1.3.0",
|
|
72
|
-
"eslint": "^8.
|
|
72
|
+
"eslint": "^8.49.0",
|
|
73
73
|
"eslint-config-prettier": "^9.0.0",
|
|
74
74
|
"eslint-plugin-no-unsanitized": "^4.0.2",
|
|
75
75
|
"jquery": "^3.7.1",
|