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

Make interchangeable with Image component and intrinsic img tag #21

Merged
merged 7 commits into from
Jun 28, 2019

Conversation

yhatt
Copy link
Owner

@yhatt yhatt commented Jun 28, 2019

So far, usages <Image> component and <img> intrinsic HTML tag had not a consistency.

  • In <Blocks>, <Image> and <img> have a same meaning (Image block).
  • In <Section> block, only <Image> component can use as an accessory. It would raise an error Unknown HTML-like element: img if you try to use <img> tag.
  • In <Context> block, only <img> component can use as an image element. It would be generated a strange text [Object object] if you try to use <Image> component.

By this PR, <Image> component and <img> element would make interchangeable in any components.

@yhatt yhatt merged commit 9575a92 into master Jun 28, 2019
@yhatt yhatt deleted the allow-img-and-image branch June 28, 2019 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant