Skip to content
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

Unable to add interactive elements in second slot #145

Open
gverapereaenvoy opened this issue Aug 19, 2024 · 0 comments
Open

Unable to add interactive elements in second slot #145

gverapereaenvoy opened this issue Aug 19, 2024 · 0 comments

Comments

@gverapereaenvoy
Copy link

I'm trying to add interactive elements (buttons) on top of the second image, not sure if it's due a z-index issue with the first image but the button is visible but not clickable. If i try to add a button on the first image it works perfectly. Any idea if it's possible to add clickable elements on the second image?

My code:

                <img-comparison-slider handle class="before-after-item">
                    <div slot="first" class="before">  
                        <img class="before-after-image" src="./images/before_image" />
                    </div>
                    <div class="after" slot="second">
                        <img class="before-after-image" src="./images/after_image" />
                        <div class="hotspot" id="hotspot-2">
                            <button class="hotspot-content" id="hotSpotButton">
                                TESTING
                            </button>
                        </div>
                    </div>
                </img-comparison-slider>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant