w3c / wcag

Web Content Accessibility Guidelines
https://w3c.github.io/wcag/guidelines/22/
Other
1.1k stars 250 forks source link

Proposal for a new SC for hover (WCAG 3.0) #899

Open JAWS-test opened 5 years ago

JAWS-test commented 5 years ago

SC

When operating with a pointing device, a hover effect should be displayed on interactive elements that meets the following conditions:

Purpose of hover visibility

Benefits

Level

AA or AAA

Reason

The visibility of the hover is currently only partially covered by 1.4.11 (see https://github.com/w3c/wcag/issues/896). At 1.4.1 hover is only mentioned at https://www.w3.org/WAI/WCAG21/Techniques/general/G183. However, there is no criterion which requires a hover effect.

jhausler1266 commented 5 years ago

Is this referring to hover panels themselves, or hovering with a mouse to reveal buttons and other stuff? I can't tell.

I would love to see a SC that bans hiding actionable content under mouse hover states. Example: listview with actions that only show when mouse is hovering over a given row.

I'd be happy to help on such a SC if that's something the community wants.

JAWS-test commented 5 years ago

I'm interested in a criterion that ensures that the cursor and the visual presentation of the element change when the mouse is over it. And that already implemented hover states are clearly visible for all, e.g. have sufficient contrasts.

Showing interactive elements only with mouseover - I'm not sure if it's an accessibility problem as long as it works when using the keyboard. It is in any case a bad usability for all users and certainly difficult to use on mobile devices.

jhausler1266 commented 5 years ago

Showing interactive elements only with mouseover can be a COGA based issue or a mobility one, if folks are relying on speech input. You'd have to know what to click on without seeing your options.

JAWS-test commented 5 years ago

I agree. But this is a different issue from the SC I have proposed. That's why you should propose a new SC on the subject.

alastc commented 5 years ago

So taking a random link in this page, e.g. example.com, what would it need to do to pass?

JAWS-test commented 5 years ago

Does it require a border or background to show the click area?

Yes, to show the click area

Does the default browser cursor pass?

With links in all cases, because with these the default cursor changes. However, it would be recommended to adjust the default cursor if this describes the function better.

If it has a background color by default, with contrasting text (at 4.5:1), what are the options for the hover effect?

The requirements would be the same as for keyboard focus visibility with the following differences: