-
Notifications
You must be signed in to change notification settings - Fork 437
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
Media viewer controls rendered behind DSpace header #2594
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davide-negretti : I gave this a test today. It works perfectly for the dspace
theme. But, if I instead change to the custom
theme then I still see the bug. Here's a screenshot showing that the header still hides the media viewer controls in the custom
theme.
So, if there's a way to also fix it for the custom theme, that'd be best. Maybe some of the dspace theme specific changes in this PR need to be made globally?
f73c616
to
814493e
Compare
@tdonohue I'm fixing custom theme and base theme as well |
814493e
to
c042cd8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks @davide-negretti ! This now fixes the bug in both the dspace
and custom
themes
Successfully created backport PR for |
References
Description
The
ds-header-navbar-wrapper
component covers the media player control buttons because it had an higher z-index than its sibling<main>
element, which contains thengx-gallery-preview
component.Note that the media preview component itself has the highest z-index, but only the z-index of
<main>
should be taken into account.In this PR I removed the z-index of
ds-header-navbar-wrapper
and I added the same z-index to theds-navbar
component, which is only shown when the collapsible navbar is expanded on mobile screens.Instructions for Reviewers
Ensure that the media viewer is enabled:
Open any item with an image, e.g. https://sandbox.dspace.org/entities/publication/ffc161e0-1bd9-415c-a479-ae48b63c43e8
Screenshots
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
yarn lint
yarn check-circ-deps
)package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.