Problem/Motivation
.tooltip class name is pretty common. And current styles not working for example in Bootstrap theme.
Proposed resolution
Rename .tooltip to .toolbar-tooltip
Issue fork navigation-3402596
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
kostyashupenkoComment #5
ckrinaGood idea @kostyashupenko! But we've been using
toolbaron all components so let's usetoolbar-tooltipinstead. Also, remember to rename the file and library :)Comment #6
ckrinaUpdated the issue summary accordingly.
Comment #7
ckrinaUpdating issue title.
Comment #8
jwilson3Apologies I cant be more active here, but I remember seeing someone wanted to genericize tooltip in a previous issue, so it could be leveraged throughout Drupal UIs. I agree it seems like a good idea.
From issue summary on: #3393067: Added tooltip component
So one suggestion for expediency might be to rename it something like
.drupal-tooltip(to namespace it and avoid collisions from other design systems) and then, if required, have specific style overrides for use in the toolbar using BEM, with.drupal-tooltip--toolbar.On the other hand, that namespacing and BEM refactor could be pushed to a follow-up at a point in time when the navigation tooltip is combined with #3197758: Create a new component: Toggletip.
Comment #9
finnsky commentedYes you are right! It is designed to be later merged with core component. But for now we need small fix to make it work with Bootstrap based themes.
Comment #10
ckrinaThanks @jwilson3! We're talking about 2 different components: Tooltip and Toggletip. Their behavior is different: mainly, one appears in hover and the other on click.
Either way, can't be sure the one used here will be moved to its own component in core outside the navigation, so I would keep using the internal naming until this is really the case.
Comment #13
akshayadhavAs per the updated IS, changed
.tooltipto.toolbar-tooltip. Created separate branch and MR to avoid confusion.Comment #17
ckrinaThanks!