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

ariaBusy and control timing for update #75

Open
DrSensor opened this issue Oct 8, 2023 · 0 comments
Open

ariaBusy and control timing for update #75

DrSensor opened this issue Oct 8, 2023 · 0 comments
Labels
accessibility Builtin ARIA patterns and best practices enhancement New feature or request

Comments

@DrSensor
Copy link
Owner

DrSensor commented Oct 8, 2023

export const count = num.u8()

/** @example html```
<button ~
  @click=increment
  #text=count
>0</button>
```
will set `aria-busy=true` for 3s until the value change
*/ export function increment() {
  count.set(it => it + 1, { delay: 3*s })
}

Why make it builtin?

I'm thinking to make every accessibility feature be builtin into the framework. So this one is the first step towards that.

@DrSensor DrSensor added accessibility Builtin ARIA patterns and best practices enhancement New feature or request labels Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Builtin ARIA patterns and best practices enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant