Skip to content

Update custom tooltip documentation and samples - #5166

Merged
etimberg merged 1 commit into
masterfrom
improve-custom-tooltip-docs
Jan 21, 2018
Merged

etimberg merged 1 commit into
masterfrom
improve-custom-tooltip-docs

Conversation

@etimberg

Copy link
Copy Markdown
Member

Resolves #5122

@etimberg etimberg added this to the Version 2.7.2 milestone Jan 21, 2018
@etimberg
etimberg requested a review from simonbrunel January 21, 2018 16:21
tooltipEl.style.fontSize = tooltip.fontSize;
tooltipEl.style.fontStyle = tooltip._fontStyle;
tooltipEl.style.fontFamily = tooltip._bodyFontFamily;
tooltipEl.style.fontSize = tooltip.bodyFontSize + 'px';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it bodyFontSize or _bodyFontSize?

@simonbrunel simonbrunel Jan 21, 2018

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it's bodyFontSize but it's weird the other properties are marked private

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, not entirely sure why that is :|

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, I know .... properties that start with _ aren't animated so the strings don't need to transition, but other stuff does

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants