-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Allowing for modes on a11y #9188
Comments
Imo a11y warning should be part of the eslint plugin. |
dummdidumm
added a commit
that referenced
this issue
Jul 4, 2024
Some people want to disable certain warnings for their whole application without having to add svelte-ignore comments everywhere. This new option makes that possible. closes #9188 part of sveltejs/language-tools#650
5 tasks
dummdidumm
added a commit
that referenced
this issue
Jul 4, 2024
Some people want to disable certain warnings for their whole application without having to add svelte-ignore comments everywhere. This new option makes that possible. closes #9188 part of sveltejs/language-tools#650
Rich-Harris
added a commit
that referenced
this issue
Jul 16, 2024
* feat: add ability to ignore warnings through compiler option Some people want to disable certain warnings for their whole application without having to add svelte-ignore comments everywhere. This new option makes that possible. closes #9188 part of sveltejs/language-tools#650 * make it a function * singular * warningFilter * make internal filter non-nullable * Update .changeset/little-seals-reflect.md * filter_warning -> warning_filter, for symmetry with public option * fix --------- Co-authored-by: Rich Harris <[email protected]>
trueadm
pushed a commit
that referenced
this issue
Jul 16, 2024
* feat: add ability to ignore warnings through compiler option Some people want to disable certain warnings for their whole application without having to add svelte-ignore comments everywhere. This new option makes that possible. closes #9188 part of sveltejs/language-tools#650 * make it a function * singular * warningFilter * make internal filter non-nullable * Update .changeset/little-seals-reflect.md * filter_warning -> warning_filter, for symmetry with public option * fix --------- Co-authored-by: Rich Harris <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the problem
When building applications, I often don't need A11y since I know it will just be me on the other end of the app. There are times when I know that A11y will be THE main feature. Due to this distinct range, I can see why Svelte's A11y is slightly aggressive but not by a lot.
So it'll be nice to have modes enabled in the
(vite|svelte).config.js
file where the default is current settings, and otherwise, I can select the sensitivity of A11yDescribe the proposed solution
So here when
off
, it would turn off ALL a11y features, includingimg alt
, whereas whenstrict
may in some way ask foraria-x
per component. I can see that is very non-trivial to decide at what SCALE to implement A11y since people may make a component for a part of a card which may not really need an A11y, but I think we can resolve that with some community inputAlternatives considered
I did look for alternatives, as extensions as such, but there don't really exist lightweight ones/ ones with sensible defaults. Additionally, this is going to be a svelte compiler modifying behaviour and will modify only a small part of the system namely the
warnings
generated by the compilerCurrently I resort to using a combination of eslint and/or turning off warnings as needed
Importance
would make my life easier
PS: I'm willing to contribute/help out in anyway i can
The text was updated successfully, but these errors were encountered: