Proper ARIA handling of breadcrumb navigation

后端 未结 4 1004
后悔当初
后悔当初 2021-01-31 20:53

What can be done to improve the accessibility of a breadcrumb menu similar to:

4条回答
  •  猫巷女王i
    2021-01-31 21:38

    I would avoid the use of aria-level and use a

      element instead. It is best to avoid using aria attributes wherever a native alternative exists. Using aria adds an extra layer of complexity. Simple HTML is far better and already has semantics that are surfaced to AT. This is the first rule of ARIA.

      Borrowing from the WAI-ARIA-Practices document, breadcrumbs would look like something like this:

      
      

      Some notes:

      1. Wrapping the breadcrumbs in a
      2. Using
          element surfaces an order to screen reader users.
        1. The
            should be a child of the
提交回复
热议问题