Hi Finsweet team,
I just got a problem with Invalid ARIA Role in Number Counter Component.
Here are all the infos about it :
Description :
The Finsweet Number Count attribute is automatically adding invalid ARIA roles (role="cnumbercount"
) to elements, which causes accessibility validation errors. This role is not recognized as a valid ARIA role according to W3C specifications, leading to console warnings and potential accessibility issues.
Steps to Reproduce :
- Add the Finsweet Number Count attribute to any element in Webflow
- Set up the fs-cnumbercount-instance attribute with any value
- Publish the site and inspect the HTML
- Run an accessibility audit (e.g., axe-core, Lighthouse, or browser dev tools)
- Check console for ARIA validation errors
Expected Behavior :
The Number Count attribute should function without adding invalid ARIA roles, or should use valid ARIA roles that enhance accessibility rather than cause validation errors.
Actual Behavior :
The attribute automatically adds role="cnumbercount"
to elements, which is not a valid ARIA role. This causes:
- Accessibility validation errors
- Console warnings about invalid ARIA roles
- Potential issues with screen readers and assistive technologies
Suggested Solution :
Either:
- Remove the automatic addition of the
role="cnumbercount"
attribute - Replace it with a valid ARIA role like
role="status"
with appropriatearia-live
attributes - Make the ARIA role addition optional or configurable