Skip to content

ariaBusy and control timing for update #75

@DrSensor

Description

@DrSensor
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibilityBuiltin ARIA patterns and best practicesenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions