Skip to content

Doesn't work in scoped styles #67

@mxrch

Description

@mxrch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions