块编辑器开发文档

💡 云策文档标注

概述

本文档为 Gutenberg 项目开发者提供无障碍性指南,强调在页面中正确使用地标区域以提升屏幕阅读器用户的导航体验。

关键要点

  • 建议将所有页面内容包含在地标区域中,确保屏幕阅读器用户能有效导航。
  • 使用 navigateRegions 包来设置不同区域之间的导航。
  • 参考 W3C 的地标设计原则和 ARIA 地标示例,以及默认定义 ARIA 地标的 HTML5 元素。

📄 原文内容

Accessibility documentation for developers working on the Gutenberg Project.

For more information on accessibility and WordPress see the Make WordPress Accessibility Handbook and the Accessibility Team section.

Landmark regions

It is a best practice to include ALL content on the page in landmarks, so that screen reader users who rely on them to navigate from section to section do not lose track of content.

For setting up navigation between different regions, see the navigateRegions package for additional documentation.

Read more regarding landmark design from W3C: