Change background color of IIIF image viewer #906
-
We have the image viewer background set to white but when we add IIIF images to the viewer the viewer changes to a black background. The first two images on this page are IIIF and display with a black background but the third is not IIIF and displays on a white background. Is there somewhere we can update the color of the IIIF viewer? This is what we have on the variables.scss:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @salger1, we've come across this before. The black background is erroneously caused by a third party dependency (Canvas Panel - a web component that renders a IIIF Canvas) which is somehow overwriting the :root {
--atlas-background: white;
} |
Beta Was this translation helpful? Give feedback.
Hi @salger1, we've come across this before. The black background is erroneously caused by a third party dependency (Canvas Panel - a web component that renders a IIIF Canvas) which is somehow overwriting the
variables.scss
file. To fix it, you need to add the line of code below to yourcustom.css
which applies the change to the root of the project. Please let us know if it works.