The Bolt Design System provides robust Twig and Web Component-powered UI components, reusable visual styles, and powerful tooling to help developers, designers, and content authors build, maintain, and scale best of class digital experiences.
When you pass a link as tooltip/popover trigger there is whitespace added by JS. This removes the whitespace.
This does not fix the whitespace added by Twig, which is still an issue on Tooltip.
How to test
Review code
Checkout this branch locally and see new test page: /pattern-lab/patterns/999-tests-tooltip-15-tooltip-link-whitespace/999-tests-tooltip-15-tooltip-link-whitespace.html
Verify there is not any whitespace after the tooltip or popover.
Jira
https://pegadigitalit.atlassian.net/browse/DOCS-53
Summary
Remove whitespace around tooltip/popover trigger.
Details
When you pass a link as tooltip/popover trigger there is whitespace added by JS. This removes the whitespace.
This does not fix the whitespace added by Twig, which is still an issue on Tooltip.
How to test
/pattern-lab/patterns/999-tests-tooltip-15-tooltip-link-whitespace/999-tests-tooltip-15-tooltip-link-whitespace.html