Skip to content

Is there a way to style currently active thumbnail a little differently? #207

Answered by igordanchenko
jagadishg asked this question in Q&A
Discussion options

You must be logged in to vote

Most of the existing styles can be adjusted with CSS variables. For example, here is how you can change the active thumbnail border color:

<Lightbox
  styles={{
    thumbnail: { "--yarl__thumbnails_thumbnail_active_border_color": "red" },
  }}
  // ...
/>

Alternatively, you can target specific CSS classes:

.yarl__thumbnails_thumbnail_active {
  border-color: red;
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by igordanchenko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants