Skip to content

Remove default style class from SpeedkitImage & SpeedkitPicture #665

@woolimi

Description

@woolimi

Describe the bug
Hello!
I was trying to migrate nuxt-img component to SpeedkitImage, and then realized that legacy styles are all broken.
That's caused by the own style of SpeedkitImage like below

<style lang="postcss" scoped>
/*! purgecss start ignore */
.nuxt-speedkit-image {
  content-visibility: auto;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
/*! purgecss end ignore */
</style>

However, I think this class should be removed and let user decide style.

Expected behavior

Remove default style and let user customize styling on their own.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions