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

[feature request] add a way to pass custom style to picture img #288

Closed
flapili opened this issue May 24, 2021 · 1 comment · Fixed by #445
Closed

[feature request] add a way to pass custom style to picture img #288

flapili opened this issue May 24, 2021 · 1 comment · Fixed by #445
Labels
enhancement New feature or request

Comments

@flapili
Copy link

flapili commented May 24, 2021

Hi, is it possible to add a way to pass style to nuxt-picture img node ?

@riddla
Copy link

riddla commented May 29, 2021

I did not find a way to add a class directly to the img tag generated by nuxt-picture, but deep selector(s) do the trick:

::v-deep img {
  max-width: 100%;
  height: auto;
}

Nevertheless it would be great if nuxt-img respectively nuxt-picture had a prob for the img tags class attribute.

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

Successfully merging a pull request may close this issue.

3 participants