Checks
Version
0.6.0
Description
Lighthouse Accessibility gives the following warning on
Many HTML elements can only be assigned certain ARIA roles. Using ARIA roles where they are not allowed can interfere with the accessibility of the web page. Learn more about ARIA roles.
This happens because the role tabpanel is not allowed on a li element.
Also mentioned in the accessibility of splidejs guide itself here.
the ul in SplideTrack and li in SplideSlide should be replaced with a div.
Reproduction Link
No response
Steps to Reproduce
- build a basic splidejs slider
- run lighthouse Accessibility.
- Under aria it reports the warning.
Expected Behaviour
Lighthouse should not give back a warning on the rendered splide elements.
Checks
Version
0.6.0
Description
Lighthouse Accessibility gives the following warning on
Many HTML elements can only be assigned certain ARIA roles. Using ARIA roles where they are not allowed can interfere with the accessibility of the web page. Learn more about ARIA roles.
This happens because the role tabpanel is not allowed on a
lielement.Also mentioned in the accessibility of splidejs guide itself here.
the
ulin SplideTrack andliin SplideSlide should be replaced with a div.Reproduction Link
No response
Steps to Reproduce
Expected Behaviour
Lighthouse should not give back a warning on the rendered splide elements.