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
When creating a new carousel instance a role of listbox is added to the div.carousel-inner element. This role requires at least one child role of 'option'. See MDN documentation
What should be happening?
Instead of creating a child of <div class="carousel-item">
the correct structure should be: <div class="carousel-item" role="option">
Steps to reproduce issue
Create a carousel
Make sure it has at least one slide
Error message in console
Lighthouse Audit message: Some ARIA parent roles must contain specific child roles to perform their intended accessibility functions
I know this is following suit with what Bootstrap has done but could we allow attributes to blindly pass through to the elements if the user still would like to add things including aria options, roles, id's and classes ?
Carousel
^7.1.0
es
^4.2.1
What is happening?
When creating a new carousel instance a role of
listbox
is added to thediv.carousel-inner
element. This role requires at least one child role of 'option'. See MDN documentationWhat should be happening?
Instead of creating a child of
<div class="carousel-item">
the correct structure should be:
<div class="carousel-item" role="option">
Steps to reproduce issue
Error message in console
Code
Example Code (Examine Source)
The text was updated successfully, but these errors were encountered: