We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The CSS added in #1880 results in a gray overlay whenever text is selected:
diff --git a/packages/react-pdf/src/Page/TextLayer.css b/packages/react-pdf/src/Page/TextLayer.css index 727c21127..094eff504 100644 --- a/packages/react-pdf/src/Page/TextLayer.css +++ b/packages/react-pdf/src/Page/TextLayer.css @@ -105,8 +105,9 @@ user-select: none; } -.textLayer .endOfContent.active { +.textLayer.selecting .endOfContent { top: 0; + background: gray; } .hiddenCanvasElement {
https://github.com/wojtekmaj/react-pdf/pull/1880/files#diff-44343a2a08329e0e1279454e436a982253618ee02b740f26dfe07e21c3c7b3db
yarn dev
No gray overlay.
.endOfContent appears to cover the entire PDF with a gray background.
.endOfContent
No response
The text was updated successfully, but these errors were encountered:
Can confirm this issue with react-pdf@9.2.0. The .endOfContent div expands to cover the entire document with a gray background during text selection.
Sorry, something went wrong.
aa08296
Thanks, fixed in 9.2.1!
No branches or pull requests
Before you start - checklist
Description
The CSS added in #1880 results in a gray overlay whenever text is selected:
https://github.com/wojtekmaj/react-pdf/pull/1880/files#diff-44343a2a08329e0e1279454e436a982253618ee02b740f26dfe07e21c3c7b3db
Steps to reproduce
yarn dev
Expected behavior
No gray overlay.
Actual behavior
.endOfContent
appears to cover the entire PDF with a gray background.Additional information
No response
Environment
The text was updated successfully, but these errors were encountered: