From dc4db11144a8c49c9b751f1f1c349c0546c099b8 Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Fri, 16 Feb 2024 10:11:27 -0500 Subject: [PATCH] Editorial: input type=image should match type=reset|submit (#508) Editorial: input type=image should match type=reset|submit The allowed roles were made consistent in an earlier PR, but the other accompanying 'not recommended' guidance was missed. closes #504 expand on the 'if possible' paragraph to call out that it'd be better for authors to use the button element instead of these legacy (though still valid) input button types. --- index.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index f8d03a8..dd2c130 100644 --- a/index.html +++ b/index.html @@ -1826,7 +1826,7 @@

- Roles: + The following roles are allowed, but are NOT RECOMMENDED: `button`, `checkbox`, `gridcell`, @@ -1846,6 +1846,10 @@

Global `aria-*` attributes and any `aria-*` attributes applicable to the allowed roles.

+

+ If possible, authors SHOULD consider using a different HTML element which allows the specified role, + such as the `button` element. +

@@ -1981,7 +1985,8 @@

and any `aria-*` attributes applicable to the allowed roles.

- If possible, authors SHOULD consider using a different HTML element which allows the specified role. + If possible, authors SHOULD consider using a different HTML element which allows the specified role, + such as the `button` element.

@@ -2036,7 +2041,8 @@

and any `aria-*` attributes applicable to the allowed roles.

- If possible, authors SHOULD consider using a different HTML element which allows the specified role. + If possible, authors SHOULD consider using a different HTML element which allows the specified role, + such as the `button` element.