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

Update 3.3.2 understanding doc and g167 technique #4102

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

scottaohara
Copy link
Member

@scottaohara scottaohara commented Oct 9, 2024

closes #4088

includes new icon-button example in G167 to showcase how a button represented by an icon alone can be used in certain instances for labeling form fields

also updates the understanding doc to provide two new written examples to the examples section list.

One to not make someone have to know to look to g167 to understand that "icons" can also serve as labels
And the second to provide an example of how two websites could have the same sort of input, but one needs instructions (due to extra requirements) while another doesn't (because they are super chill).

Copy link

netlify bot commented Oct 9, 2024

Deploy Preview for wcag2 ready!

Name Link
🔨 Latest commit 8d83b9e
🔍 Latest deploy log https://app.netlify.com/sites/wcag2/deploys/673f621e06ec17000834ceb6
😎 Deploy Preview https://deploy-preview-4102--wcag2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

as not everyone might read this page and then check out every technique to then find the updated G167, I've added two new written examples to the understanding doc as well.  (though the one about when instructions might be needed or not is a bit out of scope for this PR, i still thought it might be a nice addition... we can pull it out if people disagree or don't want scope creep)
@scottaohara scottaohara changed the title Update 3.3.2 to Update 3.3.2 understanding doc and g167 technique Oct 9, 2024
@scottaohara scottaohara self-assigned this Oct 9, 2024
@bruce-usab
Copy link
Contributor

Discussed on backlog call 11/1.

@detlevhfischer
Copy link
Contributor

detlevhfischer commented Nov 21, 2024

I think it would be beneficial to have the far more common case of a search icon (loupe) for the search case, or add that as an icon-only variant after the old school case. I think the commonality of the loupe icon standing for search is undisputed. That is then the core case on which to hang similar cases like the chat message send icon.

A line may be added, explaining that this only works when the meaning of the icon used for labelling a field and the context of use can be considered very conventional.

Should the test of the technique also check that the icon (in icon-only cases) has a descriptive programmatically determinable name (or label)? With the old school examples this was more or less a given, not so for icon based buttons?

@TestPartners
Copy link

Actually, the commonality of the loupe icon to stand for search was disputed in a discussion here only a few weeks ago. See #4095 where I mentioned three different ways in which that icon is used in different applications. That's not a problem for SC 3.3.2 because it does not require that labels are accurate or meaningful, but SC 2.4.6 does. I would argue that icons are almost never unambiguously meaningful with the possible exception of icons that occur in the user agent and are used in the same way in the website.

@detlevhfischer
Copy link
Contributor

detlevhfischer commented Nov 21, 2024

@TestPartners I agree there are different interpretations of the loupe, but I think this is not an issue when you take into account the context in which it is used (after a search field, or on a map or image). There can hardly be a more ubiquitous pattern on the web than a text field followed by a loupe icon?

@TestPartners
Copy link

You say the context is that the icon is "after a search field", but users don't know it's a search field unless they understand what the icon means. I'm really not happy saying "everyone know what this icon means". Even if we agree that the loupe is universally recognisable, many (most?) other icons are not. I would like to see G167 clearly state that the use of icons as labels is conformant with SC 3.3.2 but that it is not conformant with 2.4.6.

@detlevhfischer
Copy link
Contributor

detlevhfischer commented Nov 21, 2024

You say the context is that the icon is "after a search field", but users don't know it's a search field unless they understand what the icon means

I guess it is clear that the field itself would need an accessible name, so for non-visual use this would not be an issue?

I'm really not happy saying "everyone know what this icon means"

It won't ever be "everyone" - when could you ever be able to make such a sweeping claim? Exactly, never. There are many places where implict assumptions and conventionality play a role in interpreting and understanding, and you are managing tradeoffs here all the time. You can say the same thing about the play and pause icon - sure you will find some people who don't know them. How far will you get when you say "every visual element needs a text description next to it" or "you must not use the loupe icon, the hamburger icon, the play icon etc. because they fail 2.4.6"?

@patrickhlauke
Copy link
Member

patrickhlauke commented Nov 21, 2024

I would like to see G167 clearly state that the use of icons as labels is conformant with SC 3.3.2 but that it is not conformant with 2.4.6

I'm not sure everybody agrees with that last bit, I'm afraid. Which is the rub.

You're trying to make an absolute statement on something that is far more subjective, contextual, and nuanced. Are there uses of icons that are just too cryptic or useless (extreme case, an icon that is just a single 1x1 pixel)? Sure...and using their judgement, auditors can fail those under 2.4.6. But that does not mean that all uses of icons can never pass 2.4.6

@TestPartners
Copy link

In my view, the last bit is uncontroversial. There are countless examples of icons that have multiple interpretations or no meaning at all. SC 2.4.6 explicitly says it is non-conformant "if the label is not sufficiently clear or descriptive". On that basis, very few icons would be conformant.

@patrickhlauke
Copy link
Member

patrickhlauke commented Nov 21, 2024

"Very few" does not mean "none"...

By all means, 2.4.6's understanding should touch on the point of icons being used as labels, and suggest that authors should carefully consider how (subjectively) understandable they are. But an outright "these never pass" is, frankly, naive (unless your aim is to, overnight, make the majority of web content out there non-conformant)

@TestPartners
Copy link

I encounter so many icons that even I don't understand, that I would not object to it being an automatic non-conformance even if a small number are understandable. However, I realise that's not going to happen, so the next best thing is a requirement "that authors should carefully consider how (subjectively) understandable they are". That makes it clear that we can report a non-conformance if we think an icon is not sufficiently understandable.

It's worth making the point that text labels can also be subjectively understandable, so it's not just icons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clarification on 3.3.2: Does every input field need a persistent visual label?
8 participants