From 6e1e2556f72c54bd48a82cacd0ca2b87ee2330cb Mon Sep 17 00:00:00 2001 From: Iliyana Dyankova Date: Fri, 6 Dec 2024 16:42:02 +0200 Subject: [PATCH] fix(pdf-viewer): link annotations are not clickable --- packages/default/scss/pdf-viewer/_layout.scss | 15 +++++++++++++++ packages/fluent/scss/pdf-viewer/_layout.scss | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/packages/default/scss/pdf-viewer/_layout.scss b/packages/default/scss/pdf-viewer/_layout.scss index 333bc49cb1d..f0ba1b58a00 100644 --- a/packages/default/scss/pdf-viewer/_layout.scss +++ b/packages/default/scss/pdf-viewer/_layout.scss @@ -149,6 +149,7 @@ section { position: absolute; + pointer-events: auto; } .k-annotation-text-content { @@ -160,6 +161,14 @@ user-select: none; pointer-events: none; } + + .k-link-annotation > a { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + } } .k-annotation-editor-layer { @@ -193,6 +202,12 @@ height: 100%; pointer-events: auto; } + + &.k-highlight-editor-disabled { + .k-internal { + pointer-events: none; + } + } } .k-free-text-editor { diff --git a/packages/fluent/scss/pdf-viewer/_layout.scss b/packages/fluent/scss/pdf-viewer/_layout.scss index 214f0ea699b..edb3c17122a 100644 --- a/packages/fluent/scss/pdf-viewer/_layout.scss +++ b/packages/fluent/scss/pdf-viewer/_layout.scss @@ -146,6 +146,7 @@ section { position: absolute; + pointer-events: auto; } .k-annotation-text-content { @@ -157,6 +158,14 @@ user-select: none; pointer-events: none; } + + .k-link-annotation > a { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + } } .k-annotation-editor-layer { @@ -190,6 +199,12 @@ height: 100%; pointer-events: auto; } + + &.k-highlight-editor-disabled { + .k-internal { + pointer-events: none; + } + } } .k-free-text-editor {