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

NUX tips: Close button tooltip partially hidden on some tips #7562

Closed
afercia opened this issue Jun 27, 2018 · 3 comments
Closed

NUX tips: Close button tooltip partially hidden on some tips #7562

afercia opened this issue Jun 27, 2018 · 3 comments
Labels
[Feature] NUX Anything that impacts the new user experience [Type] Bug An existing feature does not function as intended

Comments

@afercia
Copy link
Contributor

afercia commented Jun 27, 2018

When the "new user experience" tips are displayed, the tips Close button tooltip is partially hidden in some tips. To reproduce, for example in Chrome:

  • go to the Add New post page
  • open the Chrome dev tools > Application > Storage > Local storage, and delete the entry "GUTENBERG_NUX_1" if any Edit: the storage mechanism has changed, you need now to clear the whole Gutenberg storage entry
  • refresh the page
  • the first tip should appear
  • tab to or mouse over the Close button
  • the button tooltip appears and it's fully visible:

screen shot 2018-06-27 at 11 44 39

  • click on "See next tip" to go to the following tips
  • tab to or mouse over the Close button
  • the tooltip is partially hidden behind the tip
  • worth also noting the tooltip appears in the same place where the "pulsing dot" is

screen shot 2018-06-27 at 11 44 52

screen shot 2018-06-27 at 11 45 05

Worth noting the tooltip position is dynamically calculated to stay within the viewport, and that seems to work correctly. However, seems there's something wrong with the z-index. Not sure why when the popover takes the is-bottom class it gets a lower z-index.

.components-popover:not(.is-mobile).is-bottom {
    top: 100%;
    z-index: 99990;
}

However, I guess the whole position of the tip should be reviewed, because the tooltip position conflicts with the pulsing dot.

@Soean Soean added the [Feature] NUX Anything that impacts the new user experience label Jun 27, 2018
@afercia
Copy link
Contributor Author

afercia commented Jul 26, 2018

Still can reproduce on current master

@aduth
Copy link
Member

aduth commented May 31, 2019

Confirmed this is still an issue as of May 31, 2019.

Debugging:

It is caused by this style, specific to bottom popovers:

z-index: z-index(".components-popover:not(.is-mobile).is-bottom");

This was introduced in #5630 (cc @faishal, @karmatosed, @jorgefilipecosta). I don't think this style should have been introduced this way, since the fix considered for #5630 is very specific to a particular popover, and should not apply inherently to any bottom-oriented popover (evidenced by this bug).

It occurs because the NUX popover and tooltip rely on a very specific relationship to place the tooltip above the NUX tip:

// Show NUX tips above popovers, wp-admin menus, submenus, and sidebar:
".nux-dot-tip": 1000001,
// Show tooltips above NUX tips, wp-admin menus, submenus, and sidebar:
".components-tooltip": 1000002,

The bottom-specific styling breaks this expectation, causing the tooltip to display below:

// Shows adminbar quicklink submenu above bottom popover:
// #wpadminbar ul li {z-index: 99999;}
".components-popover:not(.is-mobile).is-bottom": 99990,

@aduth aduth added the [Type] Bug An existing feature does not function as intended label May 31, 2019
@noisysocks
Copy link
Member

#18041 has addressed this by removing dot tips in lieu of a welcome guide modal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] NUX Anything that impacts the new user experience [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

4 participants