-
Notifications
You must be signed in to change notification settings - Fork 87
feat: implement vaadin-markdown component #9023
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
base: main
Are you sure you want to change the base?
Conversation
* @type {string} | ||
*/ | ||
markdown: { | ||
type: String, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this use sync: true
for consistency with other components?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't we mostly using that for the Polymer -> Lit migration. I don't see sync
use in the components that have been originally built with LitElement (side-nav, dashboard, card)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose it could be problematic with the Flow counterpart if setting content
doesn't immediately update the content (so that we'd have to wait for it to be updated in ITs)?
updated(props) { | ||
super.updated(props); | ||
|
||
renderMarkdownToElement(this, this.markdown); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add a check for if (props.has('markdown'))
just in case. There are no other props in the component but technically theme
attribute from ThemePropertyMixin
triggers an internal property which causes update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
Description
Implement the
<vaadin-markdown>
componentType of change
Feature