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

Doesn't work in scoped styles #67

Open
mxrch opened this issue Apr 11, 2023 · 1 comment
Open

Doesn't work in scoped styles #67

mxrch opened this issue Apr 11, 2023 · 1 comment
Labels

Comments

@mxrch
Copy link

mxrch commented Apr 11, 2023

When using it in a component with styled scope, ex :

<script scoped>
    export default {
        name: "Test",
        data() {
            return {
                images: [
        {
            src: 'https://tecdn.b-cdn.net/img/Photos/Horizontal/Nature/4-col/img%20(73).webp'
        },
        {
            src: 'https://tecdn.b-cdn.net/img/Photos/Horizontal/Nature/4-col/img%20(74).webp'
        },
        {
            src: 'https://tecdn.b-cdn.net/img/Photos/Horizontal/Nature/4-col/img%20(75).webp'
        },
        {
            src: 'https://tecdn.b-cdn.net/img/Photos/Horizontal/Nature/4-col/img%20(76).webp'
        },
        {
            src: 'https://tecdn.b-cdn.net/img/Photos/Horizontal/Nature/4-col/img%20(77).webp'
        },
        {
            src: 'https://tecdn.b-cdn.net/img/Photos/Horizontal/Nature/4-col/img%20(78).webp'
        }]
            };
        }
    }
</script>

<style scoped>
    @import 'vue-silentbox/dist/style.css';
</style>

<template>
    <silent-box :gallery="images"></silent-box>
</template>

The images are present in the HTML but there is an issue with the CSS, that makes them invisible.

@silencesys silencesys added the bug label Apr 12, 2023
@silencesys
Copy link
Owner

Thanks for the report, I'll look into it over the weekend.

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

No branches or pull requests

2 participants