If you have a ul
element in your HTML and you set list-style: none
via CSS (via inline styles, a style tag or an external stylesheet), your list will not be announced as a list anymore with VoiceOver + Safari on macOS.
<!-- VoiceOver + Safari will not announce this as a list -->
<ul style="list-style:none">
<li>...</li>
<li>...</li>
<li>...</li>
</ul>
Add the role
attribute to the ul
element to fix this behavior.
<!-- VoiceOver + Safari will now announce the list -->
<ul role="list" style="list-style:none">
<li>...</li>
<li>...</li>
<li>...</li>
</ul>