@docusaurus/theme-classic 0.0.0-5861 → 0.0.0-5863
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.
|
@@ -78,6 +78,7 @@ function CollapseButton({collapsed, categoryLabel, onClick}) {
|
|
|
78
78
|
{label: categoryLabel},
|
|
79
79
|
)
|
|
80
80
|
}
|
|
81
|
+
aria-expanded={!collapsed}
|
|
81
82
|
type="button"
|
|
82
83
|
className="clean-btn menu__caret"
|
|
83
84
|
onClick={onClick}
|
|
@@ -165,7 +166,8 @@ export default function DocSidebarItemCategory({
|
|
|
165
166
|
}
|
|
166
167
|
}
|
|
167
168
|
aria-current={isCurrentPage ? 'page' : undefined}
|
|
168
|
-
|
|
169
|
+
role={collapsible && !href ? 'button' : undefined}
|
|
170
|
+
aria-expanded={collapsible && !href ? !collapsed : undefined}
|
|
169
171
|
href={collapsible ? hrefWithSSRFallback ?? '#' : hrefWithSSRFallback}
|
|
170
172
|
{...props}>
|
|
171
173
|
{label}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-classic",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-5863",
|
|
4
4
|
"description": "Classic theme for Docusaurus",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/theme-classic.d.ts",
|
|
@@ -20,18 +20,18 @@
|
|
|
20
20
|
"copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@docusaurus/core": "0.0.0-
|
|
24
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
25
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
26
|
-
"@docusaurus/plugin-content-blog": "0.0.0-
|
|
27
|
-
"@docusaurus/plugin-content-docs": "0.0.0-
|
|
28
|
-
"@docusaurus/plugin-content-pages": "0.0.0-
|
|
29
|
-
"@docusaurus/theme-common": "0.0.0-
|
|
30
|
-
"@docusaurus/theme-translations": "0.0.0-
|
|
31
|
-
"@docusaurus/types": "0.0.0-
|
|
32
|
-
"@docusaurus/utils": "0.0.0-
|
|
33
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
34
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
23
|
+
"@docusaurus/core": "0.0.0-5863",
|
|
24
|
+
"@docusaurus/mdx-loader": "0.0.0-5863",
|
|
25
|
+
"@docusaurus/module-type-aliases": "0.0.0-5863",
|
|
26
|
+
"@docusaurus/plugin-content-blog": "0.0.0-5863",
|
|
27
|
+
"@docusaurus/plugin-content-docs": "0.0.0-5863",
|
|
28
|
+
"@docusaurus/plugin-content-pages": "0.0.0-5863",
|
|
29
|
+
"@docusaurus/theme-common": "0.0.0-5863",
|
|
30
|
+
"@docusaurus/theme-translations": "0.0.0-5863",
|
|
31
|
+
"@docusaurus/types": "0.0.0-5863",
|
|
32
|
+
"@docusaurus/utils": "0.0.0-5863",
|
|
33
|
+
"@docusaurus/utils-common": "0.0.0-5863",
|
|
34
|
+
"@docusaurus/utils-validation": "0.0.0-5863",
|
|
35
35
|
"@mdx-js/react": "^3.0.0",
|
|
36
36
|
"clsx": "^2.0.0",
|
|
37
37
|
"copy-text-to-clipboard": "^3.2.0",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"engines": {
|
|
62
62
|
"node": ">=18.0"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "8a2e5a97b3258f37311ef8d7bb890770e8027867"
|
|
65
65
|
}
|
|
@@ -101,6 +101,7 @@ function CollapseButton({
|
|
|
101
101
|
{label: categoryLabel},
|
|
102
102
|
)
|
|
103
103
|
}
|
|
104
|
+
aria-expanded={!collapsed}
|
|
104
105
|
type="button"
|
|
105
106
|
className="clean-btn menu__caret"
|
|
106
107
|
onClick={onClick}
|
|
@@ -193,7 +194,8 @@ export default function DocSidebarItemCategory({
|
|
|
193
194
|
}
|
|
194
195
|
}
|
|
195
196
|
aria-current={isCurrentPage ? 'page' : undefined}
|
|
196
|
-
|
|
197
|
+
role={collapsible && !href ? 'button' : undefined}
|
|
198
|
+
aria-expanded={collapsible && !href ? !collapsed : undefined}
|
|
197
199
|
href={collapsible ? hrefWithSSRFallback ?? '#' : hrefWithSSRFallback}
|
|
198
200
|
{...props}>
|
|
199
201
|
{label}
|