Skip to content

[Wildcard] New Tooltip Component

Administrator requested to merge lrh/wildcard-tooltip-component into main

Created by: lrhacker

Resolves #34847 (closed). Handles most acceptance criteria of #32362 (still does not support focus events for elements that don't natively support them, e.g. a text node).

After all uses of data-tooltip are gone, this should also enable us to remove the old InputTooltip component.

Includes an ESLint rule to warn on uses of data-tooltip, since the deprecated Tooltip component was not used directly (and the @deprecated directive for that won't be seen in many places).

Test plan

Visual testing via Storybook. Unit testing of the Tooltip behavior and automatic aria support.

Confirmed no visual regressions. New Tooltip implementation UI (left) vs deprecated implementation (right): image image

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading