Skip to content

Commit

Permalink
aria-defined: remove unnecessary spinbutton role (#2044)
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos Duarte <[email protected]>
  • Loading branch information
WilcoFiers and Carlos Duarte authored May 30, 2023
1 parent 55dc0d4 commit 8958e5a
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions _rules/aria-attr-defined-5f99a7.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,11 @@ This `div` element with a role of `textbox` has multiple `aria-` attributes whic

#### Passed Example 4

This `input` element with a role of `spinbutton` has multiple `aria-` attributes specified which are all defined in [WAI-ARIA Specifications][].
This `input` element with a type of `number` has multiple `aria-` attributes specified which are all defined in [WAI-ARIA Specifications][].

```html
<label for="spinbutton">Enter a number between 0 and 100:</label>
<input
id="spinbutton"
role="spinbutton"
aria-valuemax="100"
aria-valuemin="0"
aria-valuenow="25"
type="number"
value="25"
/>
<input id="spinbutton" aria-valuemax="100" aria-valuemin="0" aria-valuenow="25" type="number" value="25" />
```

### Failed
Expand Down

0 comments on commit 8958e5a

Please sign in to comment.