Skip to content

Commit

Permalink
fix(pdf-viewer): link annotations are not clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
inikolova committed Dec 6, 2024
1 parent 32b3a14 commit 6e1e255
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/default/scss/pdf-viewer/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@

section {
position: absolute;
pointer-events: auto;
}

.k-annotation-text-content {
Expand All @@ -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 {
Expand Down Expand Up @@ -193,6 +202,12 @@
height: 100%;
pointer-events: auto;
}

&.k-highlight-editor-disabled {
.k-internal {
pointer-events: none;
}
}
}

.k-free-text-editor {
Expand Down
15 changes: 15 additions & 0 deletions packages/fluent/scss/pdf-viewer/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@

section {
position: absolute;
pointer-events: auto;
}

.k-annotation-text-content {
Expand All @@ -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 {
Expand Down Expand Up @@ -190,6 +199,12 @@
height: 100%;
pointer-events: auto;
}

&.k-highlight-editor-disabled {
.k-internal {
pointer-events: none;
}
}
}

.k-free-text-editor {
Expand Down

0 comments on commit 6e1e255

Please sign in to comment.