Closed nikolailehbrink closed 1 year ago
Hi @amarinediary, this pull request aims to improve the accessibility and structure of the breadcrumb component. The changes include:
<nav>
element with an aria-label
attribute for better screen reader support.<li>
element, so the list only contains <li>
elements and elements for script support, in line with the requirements for proper list structure.These changes address the issue raised by Lighthouse, which indicated a deduction of 2 points in accessibility due to the improper list structure. The updates should improve the overall accessibility score and provide a better user experience for screen reader users.
https://www.w3.org/WAI/ARIA/apg/patterns/breadcrumb/examples/breadcrumb/
I'll just blindly trust you on that one ! Cheers ! Does the css exemple in the README.md needs to updated ? As you're changing the architecture ?
Hi @amarinediary, I don't think it needs to be updated, as I just wrapped the whole thing in a <nav>
Element. The .bread class still inherits the same markup. :)