mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
Update image error messages (#12331)
Co-authored-by: Atharva <atharvapise19@gmail.com>
This commit is contained in:
parent
feb87c21be
commit
413503e52c
1 changed files with 4 additions and 5 deletions
|
@ -461,8 +461,8 @@ export const PageNumberParamNotFound = {
|
||||||
* @docs
|
* @docs
|
||||||
* @see
|
* @see
|
||||||
* - [Images](https://docs.astro.build/en/guides/images/)
|
* - [Images](https://docs.astro.build/en/guides/images/)
|
||||||
* - [Image component](https://docs.astro.build/en/guides/images/#image--astroassets)
|
* - [Image component](https://docs.astro.build/en/reference/modules/astro-assets/#image-)
|
||||||
* - [Image component#alt](https://docs.astro.build/en/guides/images/#alt-required)
|
* - [Image component#alt](https://docs.astro.build/en/reference/modules/astro-assets/#alt-required)
|
||||||
* @description
|
* @description
|
||||||
* The `alt` property allows you to provide descriptive alt text to users of screen readers and other assistive technologies. In order to ensure your images are accessible, the `Image` component requires that an `alt` be specified.
|
* The `alt` property allows you to provide descriptive alt text to users of screen readers and other assistive technologies. In order to ensure your images are accessible, the `Image` component requires that an `alt` be specified.
|
||||||
*
|
*
|
||||||
|
@ -496,9 +496,9 @@ export const InvalidImageService = {
|
||||||
* Missing width and height attributes for `IMAGE_URL`. When using remote images, both dimensions are required in order to avoid cumulative layout shift (CLS).
|
* Missing width and height attributes for `IMAGE_URL`. When using remote images, both dimensions are required in order to avoid cumulative layout shift (CLS).
|
||||||
* @see
|
* @see
|
||||||
* - [Images](https://docs.astro.build/en/guides/images/)
|
* - [Images](https://docs.astro.build/en/guides/images/)
|
||||||
* - [Image component#width-and-height-required](https://docs.astro.build/en/guides/images/#width-and-height-required-for-images-in-public)
|
* - [Image component#width-and-height-required](https://docs.astro.build/en/reference/modules/astro-assets/#width-and-height-required-for-images-in-public)
|
||||||
* @description
|
* @description
|
||||||
* For remote images, `width` and `height` cannot automatically be inferred from the original file. To avoid cumulative layout shift (CLS), either specify these two properties, or set [`inferSize`](https://docs.astro.build/en/guides/images/#infersize) to `true` to fetch a remote image's original dimensions.
|
* For remote images, `width` and `height` cannot automatically be inferred from the original file. To avoid cumulative layout shift (CLS), either specify these two properties, or set [`inferSize`](https://docs.astro.build/en/reference/modules/astro-assets/#infersize) to `true` to fetch a remote image's original dimensions.
|
||||||
*
|
*
|
||||||
* If your image is inside your `src` folder, you probably meant to import it instead. See [the Imports guide for more information](https://docs.astro.build/en/guides/imports/#other-assets).
|
* If your image is inside your `src` folder, you probably meant to import it instead. See [the Imports guide for more information](https://docs.astro.build/en/guides/imports/#other-assets).
|
||||||
*/
|
*/
|
||||||
|
@ -939,7 +939,6 @@ export const InvalidDynamicRoute = {
|
||||||
* @docs
|
* @docs
|
||||||
* @see
|
* @see
|
||||||
* - [Default Image Service](https://docs.astro.build/en/guides/images/#default-image-service)
|
* - [Default Image Service](https://docs.astro.build/en/guides/images/#default-image-service)
|
||||||
* - [Image Component](https://docs.astro.build/en/guides/images/#image--astroassets)
|
|
||||||
* - [Image Services API](https://docs.astro.build/en/reference/image-service-reference/)
|
* - [Image Services API](https://docs.astro.build/en/reference/image-service-reference/)
|
||||||
* @description
|
* @description
|
||||||
* Sharp is the default image service used for `astro:assets`. When using a [strict package manager](https://pnpm.io/pnpm-vs-npm#npms-flat-tree) like pnpm, Sharp must be installed manually into your project in order to use image processing.
|
* Sharp is the default image service used for `astro:assets`. When using a [strict package manager](https://pnpm.io/pnpm-vs-npm#npms-flat-tree) like pnpm, Sharp must be installed manually into your project in order to use image processing.
|
||||||
|
|
Loading…
Reference in a new issue