dm-p / powerbi-visuals-html-content

Visualise column or measure values as HTML in your Power BI reports. Intended as a spiritual successor to the OG HTML Viewer custom visual, with some extra stuff thrown in.
MIT License
85 stars 18 forks source link

[ENHANCEMENT] Adjust Cursor Behavior in HTML Visual #107

Closed LS-Stud closed 5 months ago

LS-Stud commented 6 months ago

Hi Daniel,

Thank you for providing this HTML visual. It's been incredibly useful!

I did notice one small issue: whenever I hover over the visual, the cursor changes from the default arrow to a hand icon. To make it more intuitive, could we have the cursor change only when hovering over clickable links within the visual? I believe this adjustment would greatly enhance the user experience.

I'd really appreciate your help with this improvement.

Many thanks in advance!

Best regards!

dm-p commented 6 months ago

Hi, and I'm glad to hear that you find the visual useful! Thanks for creating an issue to help to improve it.

Unfortunately, I just submitted an update a couple of days before your issue was raised, so it might be a while before I can add this as an enhancement.

As a workaround in the meantime, you can override the cursor via CSS by creating a measure, e.g.:

Cursor Override = "#htmlViewer {
    cursor: auto;
}"

You can add this to the stylesheet in the properties pane, and you should have the desired effect.

LS-Stud commented 5 months ago

Hi Daniel,

thank you very much. It works very well!