Skip to content

Commit

Permalink
docs(img): unencoded img tag in readme (ionic-team#19172)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtpHarry authored and brandyscarney committed Aug 27, 2019
1 parent 48a2763 commit 7f66647
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ export namespace Components {
*/
'alt'?: string;
/**
* The image URL. This attribute is mandatory for the <img> element.
* The image URL. This attribute is mandatory for the `<img>` element.
*/
'src'?: string;
}
Expand Down Expand Up @@ -4373,7 +4373,7 @@ declare namespace LocalJSX {
*/
'onIonImgWillLoad'?: (event: CustomEvent<void>) => void;
/**
* The image URL. This attribute is mandatory for the <img> element.
* The image URL. This attribute is mandatory for the `<img>` element.
*/
'src'?: string;
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/img/img.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class Img implements ComponentInterface {
@Prop() alt?: string;

/**
* The image URL. This attribute is mandatory for the <img> element.
* The image URL. This attribute is mandatory for the `<img>` element.
*/
@Prop() src?: string;
@Watch('src')
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/img/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const ImgExample: React.FC = () => (
| Property | Attribute | Description | Type | Default |
| -------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------- | ----------- |
| `alt` | `alt` | This attribute defines the alternative text describing the image. Users will see this text displayed if the image URL is wrong, the image is not in one of the supported formats, or if the image is not yet downloaded. | `string \| undefined` | `undefined` |
| `src` | `src` | The image URL. This attribute is mandatory for the <img> element. | `string \| undefined` | `undefined` |
| `src` | `src` | The image URL. This attribute is mandatory for the `<img>` element. | `string \| undefined` | `undefined` |


## Events
Expand Down

0 comments on commit 7f66647

Please sign in to comment.