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

Button tooltip fix - default to description #3589

Merged
merged 2 commits into from
Sep 16, 2022

Conversation

jmk89
Copy link
Contributor

@jmk89 jmk89 commented Sep 14, 2022

Fixes #2286 . Tooltip on buttons no longer defaults to "null". Rather, it defaults to the description if no tooltip is set.

There had been some discussion related to description_tooltips previously, but description_tooltips has been deprecated after PR #2680 was merged. Issue #421 can be closed too.

@github-actions
Copy link

Binder 👈 Launch a binder notebook on branch jmk89/ipywidgets/button-tooltip

@jasongrout jasongrout added this to the 8.0.x milestone Sep 14, 2022
Copy link
Member

@jasongrout jasongrout left a comment

Choose a reason for hiding this comment

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

Thanks! This looks great. I suggested one change to simplify the code and make it so that setting the tooltip to an empty string disables the tooltip. If you agree, I think we are good to merge this!

Using nullish coalescing operator

Co-authored-by: Jason Grout <jasongrout@users.noreply.github.com>
@jasongrout jasongrout merged commit 6330485 into jupyter-widgets:master Sep 16, 2022
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.

Button tooltips don't default to the description
2 participants