vmware-archive / clarity

Clarity is a scalable, accessible, customizable, open source design system built with web components. Works with any JavaScript framework, built for enterprises, and designed to be inclusive.
http://clarity.design
MIT License
6.43k stars 763 forks source link

Angular tooltip should be hoverable for accessibility #6574

Closed juanjosegutierrez closed 2 years ago

juanjosegutierrez commented 2 years ago

Describe the bug

The angular tooltip element opens when you hover over the trigger element and closes when you leave. If you try to hover over the tooltip content, then the tooltip will close. According to WCAG 21, tooltip content needs to be hoverable too. Here is the documentation: https://www.w3.org/WAI/WCAG21/Understanding/content-on-hover-or-focus.html.

How to reproduce

This issue can be seen on the clarity page for the angular tooltip in one of the tooltip examples: https://clarity.design/angular-components/tooltip/

Here is a screenshot:

Screen Shot 2022-01-13 at 1 12 24 PM

Steps to reproduce the behavior:

  1. Go to https://clarity.design/angular-components/tooltip/
  2. Scroll down to the tooltip demos like in the screenshot.
  3. Hover over one of the tooltip demo elements.
  4. Once the tooltip opens, attempt to hover over the tooltip content.
  5. See that it is not possible

Expected behavior

User should be able to hover over tooltip content.

Versions

Clarity project:

Clarity version:

Framework:

Framework version: Angular 12

Device:

Additional notes

None.

gnomeontherun commented 2 years ago

@scrosiner Can you check if this is already a duplicate of what we have tracked internally? I believe so.

@juanjosegutierrez is based on testing through VMware?

juanjosegutierrez commented 2 years ago

@gnomeontherun yes this is based on VMware testing

github-actions[bot] commented 1 year ago

Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.