@hortonstudio/main 1.1.30 → 1.1.31
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 +1 -1
- package/utils/toc.js +4 -0
package/package.json
CHANGED
package/utils/toc.js
CHANGED
@@ -51,6 +51,10 @@ export async function init() {
|
|
51
51
|
const targetSection = document.getElementById(sectionId);
|
52
52
|
if (targetSection) {
|
53
53
|
targetSection.scrollIntoView({ behavior: 'smooth' });
|
54
|
+
// Focus on the section for accessibility (will only show outline for keyboard users due to CSS)
|
55
|
+
setTimeout(() => {
|
56
|
+
targetSection.focus();
|
57
|
+
}, 100);
|
54
58
|
}
|
55
59
|
});
|
56
60
|
|