We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The tooltip documentation says:
By default, tooltips appear on the top of their related element.
and
data-position="top": On top, horizontally centered. If the data-position attribute is omitted, the tooltip will appear on top by default.
However, when data-position is not specified at all, the tooltip is incorrectly positioned bottom left of trigger.
data-position
class="usa-tooltip"
title
Tooltip should appear as if data-position="top" is set.
data-position="top"
<div class="padding-8"> <div class="margin-4"> <button type="button" class="usa-button usa-tooltip" title="Tooltip">Show tooltip</button> </div> </div>
Codepen demo
Would be happy to tackle this if confirmed!
The text was updated successfully, but these errors were encountered:
Thank for taking this on! I can confirm using a tooltip without position set results in incorrect placing.
<button type="button" class="usa-button usa-tooltip" title="No position set on this tooltip">Hello world</button>
Sorry, something went wrong.
mejiaj
Successfully merging a pull request may close this issue.
Describe the bug
The tooltip documentation says:
and
However, when
data-position
is not specified at all, the tooltip is incorrectly positioned bottom left of trigger.Steps to reproduce the bug
class="usa-tooltip"
andtitle
but nodata-position
attribute.Expected Behavior
Tooltip should appear as if
data-position="top"
is set.Related code
Codepen demo
Screenshots
System setup
Additional context
Would be happy to tackle this if confirmed!
Code of Conduct
The text was updated successfully, but these errors were encountered: