docs-#1020: add nuxt img alt prop definition#1628
Conversation
Deploying nuxt-image with
|
| Latest commit: |
a6404b6
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://13b61b92.nuxt-image.pages.dev |
| Branch Preview URL: | https://docs--1020.nuxt-image.pages.dev |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1628 +/- ##
==========================================
+ Coverage 62.83% 62.87% +0.03%
==========================================
Files 79 79
Lines 3536 3539 +3
Branches 411 412 +1
==========================================
+ Hits 2222 2225 +3
Misses 1285 1285
Partials 29 29 ☔ View full report in Codecov by Sentry. |
danielroe
left a comment
There was a problem hiding this comment.
<NuxtImg> accepts all the possible image props, including alt:
image/src/runtime/components/_base.ts
Lines 31 to 52 in 92a6eee
I think if we mention it here we should note that <NuxtImg> does not apply any special handling for alt but reiterate how important it is to provide it, and include a link to MDN.
|
Fixed @danielroe Could you check if now it looks good? :) Should I also write the importance of setting this attribute? |
🔗 Linked issue
Resolves #1020
❓ Type of change
📚 Description
This PR adds a note in the documentation about the
altprop thatNuxtImgaccepts while it is not documented.