-
Notifications
You must be signed in to change notification settings - Fork 87
feat: add markdown support to tooltip #10245
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
Conversation
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.
|
Mhh, I can not reproduce that. It should be fixed by splitting up these CSS rules: web-components/packages/vaadin-lumo-styles/src/components/tooltip-overlay.css Lines 20 to 26 in 7a212be
|
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
a9efd1a to
191bc14
Compare
My bad, was a browser caching issue (apparently web dev server config needs some tweaks to not cache CSS). |
|
|
This ticket/PR has been released with Vaadin 25.0.0-alpha14. |




Description
Adds Markdown support to
vaadin-tooltip. This introduces amarkdownproperty, which when enabled parses the tooltip content as Markdown and renders the corresponding HTML into the overlay.This adds a dependency on
vaadin-markdownto get access to therenderMarkdownToElementhelper. Similar to howvaadin-messagedynamically imports thevaadin-markdowncomponent when enabling Markdown mode, the helper is imported dynamically at runtime. This avoids pulling themarkedanddompurifydependencies into the main bundle if Markdown is not used, and instead allows code-splitting those in a separate chunk.Part of #9771
Type of change