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

ENH: Use bootstrap tooltip to display icons title #924

Merged
merged 10 commits into from Sep 12, 2022

Conversation

12rambau
Copy link
Collaborator

@12rambau 12rambau commented Sep 11, 2022

Fix #920

From a design point of view that's a bad practice to use icons without title as it leave the user interprete what the icon is for. Even if we use stadards of the web it's better to be on the safe side.

Titles where already set for the generated icons but missing for the search and theme switcher.

I also changed their design simply by activating the bootstrap tooltip instead if relying on browser display.

Capture d’écran 2022-09-11 à 14 34 43

Capture d’écran 2022-09-11 à 14 34 51

Capture d’écran 2022-09-11 à 14 35 00

@12rambau 12rambau marked this pull request as ready for review September 11, 2022 13:31
Copy link
Collaborator

@drammock drammock left a comment

Choose a reason for hiding this comment

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

LGTM just one comment about the tooltip text for the mode switcher.

tests/test_build/navbar_theme.html Outdated Show resolved Hide resolved
tests/test_build/sidebar_subpage.html Outdated Show resolved Hide resolved
Copy link
Collaborator

@choldgraf choldgraf left a comment

Choose a reason for hiding this comment

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

Looks good to me, we're already loading the bootstrap JS code so it makes sense to utilize this feature IMO.

@choldgraf choldgraf changed the title use bootstrap tooltip to display icons title ENH: Use bootstrap tooltip to display icons title Sep 12, 2022
@choldgraf choldgraf merged commit cf8a947 into pydata:main Sep 12, 2022
@12rambau 12rambau deleted the tooltip branch September 12, 2022 08:23
@jarrodmillman jarrodmillman added this to the 0.11 milestone Sep 19, 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.

Add tooltips for the header navbar icons
4 participants