The "Focus" field below has some help text that appears when the mouse is hovered over the info icon and disappears when the mouse leaves the icon:
I needed to take a screenshot of the help text, so I was wondering if there was a way to force the text bubble to appear. I tried setting the element state of <lightning-helptext>
and to "hover", but this didn't work:
I don't have any XML knowledge and am very new to Salesforce, so I'm not quite sure what to try next.
Could someone please shed some light on what's happening behind the scenes when I hover over the icon (I noticed that the data-position-id
attribute changes on each hover) and whether there is a way to make the text persistent using only the browser inspector?
PS: My apologies if I've chosen the wrong tags.
EDIT: To be clear, I was able to take the screenshot by hovering my mouse over the icon and pressing the "PrtSc" button on my keyboard. But I'm more interested in how the help text is being rendered, hence the title of my post. Would the Lightning Developer Guide guide help here?