Skip to content
New issue

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

z-index isn't working on Document element of react-pdf #1715

Open
4 tasks done
krishnaacharyaa opened this issue Feb 9, 2024 · 0 comments
Open
4 tasks done

z-index isn't working on Document element of react-pdf #1715

krishnaacharyaa opened this issue Feb 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@krishnaacharyaa
Copy link

Before you start - checklist

  • I followed instructions in documentation written for my React-PDF version
  • I have checked if this bug is not already reported
  • I have checked if an issue is not listed in Known issues
  • If I have a problem with PDF rendering, I checked if my PDF renders properly in PDF.js demo

Description

I have a simple search bar, which has overlay results, which is covering almost the entire application except for this PDF renderer element, it is overlapping the search results which is not ideal.

enter image description here

The actual heirarchy is

parent
|_SearchBar // which has overlay results
|_Folder
 |_Subfolder
  |_PDFViewer // which is overlaping

Steps to reproduce

clone the app from https://github.com/krishnaacharyaa/search-pdf-combo
npm i
npm run dev

Expected behavior

Document gets rendered below the searchresults overlay

Actual behavior

Document gets rendered above the searchresults overlay

Additional information

No response

Environment

  • Browser (if applicable):
  • React-PDF version:
  • React version:
  • Webpack version (if applicable):
@krishnaacharyaa krishnaacharyaa added the bug Something isn't working label Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant