-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
demo-app: Fix A11y warnings #107
Comments
Hi yes, this is known. I have a11y warnings supressed in my editor. We don't control the component level as they are ionic native thingies. I don't know how many ionic-svelte developers handle a11y warnings. And as you say, tedious. I would mark this issue as - will not solve. |
Actually, as suggested in this Stack Overflow answer, these warnings may be incorrect. I asked in the Svelte discord and I'll try to figure out if there is a good way to turn off invalid a11y warnings for Ionic components only, so please give me a little time to look into this before closing it. If I can find a good way to do it, I'll submit a PR. |
Quoting from Slack:
So it looks like this will be easy to implement in Svelte 5; suggestion: postpone this issue until the Svelte 5 upgrade? |
Fine with me - thx for researching |
How to reproduce
cd demo-app
npm run check
123 warnings, it seems all of which are
A11y
-related.For example:
And:
When I inspected the demo app at https://ionic-svelte.firebaseapp.com/components/Toolbar, the ion-buttons don't have the role.
It's easy enough to add
role="button"
or similar to eachion-button
. However, it's a bit tedious to add the role every time we add anon:click
. So maybe this should be solved at the component level instead-- if a user setson:click
for a button, we automatically addrole="button"
?The text was updated successfully, but these errors were encountered: