Skip to content

Change background color of IIIF image viewer #906

Answered by Erin-Cecele
salger1 asked this question in Get Help
Discussion options

You must be logged in to vote

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 your custom.css which applies the change to the root of the project. Please let us know if it works.

:root {
  --atlas-background: white;
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@salger1
Comment options

@Erin-Cecele
Comment options

Answer selected by salger1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iiif An issue related to IIIF processing, canvas-panel, or sequence-panel
2 participants