You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Always provide an accessible label for the <code><mat-nav-list></code> element via <code>aria-label</code> or
257
257
<code>aria-labelledby</code>.</p>
258
+
<p>To provide the best screen reader experience for a list, wrap each anchor element with a <code><li></code> or <code><div role="listitem"></code> element and wrap all of the anchor elements with a <code><ul></code> element or <code><div role="list"></code> element.</p>
259
+
<pre><codeclass="language-html"><spanclass="hljs-tag"><<spanclass="hljs-name">mat-nav-list</span><spanclass="hljs-attr">aria-label</span>=<spanclass="hljs-string">"Select a folder"</span>></span>
<spanclass="hljs-tag"><<spanclass="hljs-name">a</span><spanclass="hljs-attr">mat-list-item</span><spanclass="hljs-attr">href</span>=<spanclass="hljs-string">"..."</span> [<spanclass="hljs-attr">activated</span>]=<spanclass="hljs-string">"link.isActive"</span>></span>{{ link }}<spanclass="hljs-tag"></<spanclass="hljs-name">a</span>></span>
<p>To provide the best screen reader experience for a list, wrap each button element with a <code><li></code> or <code><div role="listitem"></code> element and add <code>role="list"</code> to <code><mat-action-list></code>.</p>
0 commit comments