Skip to content

fix: disable sdt hover in view mode for web layout#2661

Merged
caio-pizzol merged 3 commits intomainfrom
sd-2414_disable-sdt-hover-web
Apr 3, 2026
Merged

fix: disable sdt hover in view mode for web layout#2661
caio-pizzol merged 3 commits intomainfrom
sd-2414_disable-sdt-hover-web

Conversation

@VladaHarbour
Copy link
Copy Markdown
Contributor

No description provided.

@VladaHarbour VladaHarbour self-assigned this Mar 31, 2026
@linear
Copy link
Copy Markdown

linear bot commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

@caio-pizzol caio-pizzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@VladaHarbour tested with Word docs in web layout viewing mode — hover suppression and inline click blocking work nicely.

two small things: (1) clicking a block SDT in viewing mode still shows a blue selection outline in web layout. (2) when the document only contains a block SDT with nothing around it, the cursor stays inside instead of moving out on mode switch. both are minor since the CSS hides the hover, but worth a look.

pushed two behavior tests for click suppression in viewing mode. left inline comments. feel free to merge after addressing those.

@caio-pizzol caio-pizzol self-requested a review April 3, 2026 12:06
Copy link
Copy Markdown
Contributor

@caio-pizzol caio-pizzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm (after addressing comments)

@VladaHarbour VladaHarbour force-pushed the sd-2414_disable-sdt-hover-web branch from fe0a102 to 2e26333 Compare April 3, 2026 13:26
@VladaHarbour VladaHarbour requested a review from caio-pizzol April 3, 2026 14:48
Copy link
Copy Markdown
Contributor

@caio-pizzol caio-pizzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@VladaHarbour both fixes look good, tests cover the edge cases. approving.

@caio-pizzol caio-pizzol added this pull request to the merge queue Apr 3, 2026
Merged via the queue into main with commit 25a2705 Apr 3, 2026
54 checks passed
@caio-pizzol caio-pizzol deleted the sd-2414_disable-sdt-hover-web branch April 3, 2026 16:16
@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot bot commented Apr 3, 2026

🎉 This PR is included in vscode-ext v1.1.0-next.61

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot bot commented Apr 3, 2026

🎉 This PR is included in template-builder v1.3.0-next.18

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot bot commented Apr 3, 2026

🎉 This PR is included in esign v2.2.0-next.19

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot bot commented Apr 3, 2026

🎉 This PR is included in @superdoc-dev/react v1.0.0-next.15

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot bot commented Apr 3, 2026

🎉 This PR is included in superdoc v1.24.0-next.58

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot bot commented Apr 3, 2026

🎉 This PR is included in superdoc-cli v0.5.0-next.58

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot bot commented Apr 3, 2026

🎉 This PR is included in superdoc-sdk v1.3.0-next.59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants