Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Close button styles are overridden by Twitter Bootstrap #15

Closed
kzviagina opened this issue Jul 27, 2016 · 2 comments
Closed

Close button styles are overridden by Twitter Bootstrap #15

kzviagina opened this issue Jul 27, 2016 · 2 comments
Assignees
Labels

Comments

@kzviagina
Copy link

Hello!

Thanks a lot for this component!
We use it in our React project with Twitter Bootstrap and webpack. Unfortunately we found that, .close css class styles are overridden by Twitter Bootstrap. Is it possible to replace them by something more specific (like ril-close or react-image-lightbox-close), to keep ability to customize component and not to be overridden accidentally?

@fritz-c
Copy link
Member

fritz-c commented Jul 28, 2016

Sorry, this was a big oversight on my part. I've added the ril- prefixed classes as you suggested (available now in v3.0.3), but I'm afraid I have to leave the classes until the next major release, as removing them would be a breaking change. In the meantime, you may have to write some CSS that protects the lightbox style from being overridden by bootstrap.

@fritz-c fritz-c added the bug label Jul 28, 2016
@fritz-c fritz-c self-assigned this Jul 28, 2016
@kzviagina
Copy link
Author

Thanks a lot for a quick feedback and for this update!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants