Skip to content

Can advanced tooltops be applied to HTML templates #7998

Answered by kamilkrzyskow
Andre601 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Andre601,
after doing a quick search I see that content.tooltips is applied when mounting content (separate for code blocks) and header.

After looking at how the content is mounted I saw it relies on the component value in the attribute.

So I would suggest adding data-md-component="content" to your section HTML tag, similar to how it's done in base.html:

As for your example the <style> tag contains different styles than your section, and mdx- classes are only available in the custom.css file, they're not shipped with the main.css file.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Andre601
Comment options

@Andre601
Comment options

Answer selected by Andre601
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants