Skip to content
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

a11y inert #7500

Closed
shinokada opened this issue May 1, 2022 · 7 comments · Fixed by #7944
Closed

a11y inert #7500

shinokada opened this issue May 1, 2022 · 7 comments · Fixed by #7944

Comments

@shinokada
Copy link

Describe the problem

Can Svelte have the HTMLElement property inert?
image

Describe the proposed solution

It can be done like checked, readonly, and disabled.

Alternatives considered

Add support for wicg-inert.

Importance

nice to have

@dummdidumm
Copy link
Member

Could you clarify what you mean by "can Svelte have this"?

@Conduitry
Copy link
Member

I would guess this means to handle inert as a boolean attribute (on certain elements? on all elements?) but I'm not sure.

@shinokada
Copy link
Author

shinokada commented May 1, 2022

Sorry that I was not clear. After watching the Svelte Summit, I thought Svelte doc can have the a11y section that explains how Svelte take the a11y seriously and show some examples how to improve a11y.
Since inert is coming to major browsers, I thought it will be a good example to use it in the doc.

So that my point was that Svelte cares about a11y and show more examples in doc.

@dummdidumm
Copy link
Member

I agree that a dedicated section on a11y with more context would be great, but I'm not sure I would use an attribute as an example that most browsers only have behind a flag.

@benbender
Copy link
Contributor

As I'm a bit confused now, I would like to ask if this issue should track the effort to bring inert to svelte or if a new issue should be opened?

Inert is available in Firefox and Chrome and in preview for Edge and Safari. So I would love to see native support in sveltekit as I <3 to play with those latest features :)

@Conduitry
Copy link
Member

The handling of inert should be improved now in 3.56.0.

@Rich-Harris
Copy link
Member

seems like we can close this as completed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants