-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Labels
Affects: DocumentationRelates to documentation. Should this be in uswds-site?Relates to documentation. Should this be in uswds-site?Needs: ResearchWe need to conduct user research before proceedingWe need to conduct user research before proceedingPackage: TooltipQ2 researchRole: UXUX skills neededUX skills neededType: SpikeA short research activity to help make a decisionA short research activity to help make a decision
Milestone
Description
Describe the bug
The tooltip documentation states:
Any element with the class name usa-tooltip and a title attribute will become a tooltip.
This doesn't appear to be correct. The tooltip component appears to only target button
elements.
// Initialize tooltip if it hasn't already
if (elementType === "BUTTON" && trigger.hasAttribute("title")) {
setUpAttributes(trigger);
}
Steps to reproduce the bug
- Attempt to apply tooltip component to any element other than
button
Expected Behavior
Based on the documentation, one would expect the tooltip component to apply to "any element with the class name usa-tooltip
and a title
attribute."
Related code
// Initialize tooltip if it hasn't already
if (elementType === "BUTTON" && trigger.hasAttribute("title")) {
setUpAttributes(trigger);
}
Screenshots
No response
System setup
No response
Additional context
No response
Code of Conduct
- I agree to follow this project's Code of Conduct.
- I checked the current issues for duplicate bug reports.
Metadata
Metadata
Assignees
Labels
Affects: DocumentationRelates to documentation. Should this be in uswds-site?Relates to documentation. Should this be in uswds-site?Needs: ResearchWe need to conduct user research before proceedingWe need to conduct user research before proceedingPackage: TooltipQ2 researchRole: UXUX skills neededUX skills neededType: SpikeA short research activity to help make a decisionA short research activity to help make a decision
Type
Projects
Status
Done