-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: consider value attribute before localized input type (#406)
- Loading branch information
Showing
5 changed files
with
121 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
"dom-accessibility-api": patch | ||
--- | ||
|
||
Fix various issues for input types `submit`, `reset` and `image` | ||
|
||
Prefer input `value` when `type` is `reset` or `submit`: | ||
|
||
```diff | ||
<input type="submit" value="Submit values"> | ||
-// accessible name: "Submit" | ||
+// accessible name: "Submit values" | ||
<input type="reset" value="Reset form"> | ||
-// accessible name: "Reset" | ||
+// accessible name: "Reset form" | ||
``` | ||
|
||
For input `type` `image` consider `alt` attribute or fall back to `"Submit query"`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters