chakra-ui / ark

A headless library for building reusable, scalable design systems that works for a wide range of JS frameworks.

Home Page:https://ark-ui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Aria role does not exist in Toast

juliomuhlbauer opened this issue · comments

Description

image

Link to Reproduction (or Detailed Explanation)

https://pagespeed.web.dev/analysis/https-ark-ui-com-docs-components-toast/k4at8ulapm?form_factor=desktop

Steps to Reproduce

Put a Toaster in your application and test page speed

Ark UI Version

2.2.3

Framework

  • React
  • Solid
  • Vue

Browser

No response

Additional Information

No response

This feels odd. The aria role of region is a valid value, not sure why the page speed insight considers it incorrect.

https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/region_role

We tested this against a few screen readers before landing in this role. There’s nothing we can do here