Bug - "sdds-button with tooltip"
Closed this issue · 0 comments
iths-jonathan-engman commented
Describe the bug
Tooltip do not having the correct distance, instead floats on top of the target, in this case, button.
The bug doesn't appear locally, but does in the production preview.
To Reproduce
Use this code: <sdds-button type="primary" id="button-1" text="Button"></sdds-button> <sdds-tooltip placement="top" selector="#button-1" text="Lorem ipsum"></sdds-tooltip>
Expected behavior
The tooltip should have a distance of 8px from the target, in this case, the button
Additional comment
The tooltip works as intended by having the "original" button as the target instead, like <button class="sdds-btn sdds-btn-primary">