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

Unable to select items from dropdown due to overlapping header #6576

Closed
asvinb opened this issue Feb 10, 2023 · 3 comments
Closed

Unable to select items from dropdown due to overlapping header #6576

asvinb opened this issue Feb 10, 2023 · 3 comments
Labels
Exp: SP P2 Low priority Type: Bug Something isn't working

Comments

@asvinb
Copy link
Collaborator

asvinb commented Feb 10, 2023

Bug Description

When we have lots of items in a dropdown menu(select) and which open upwards, it is impossible to select some items since they are hidden by the header which has a higher z-index.

This was previously fixed in #2885 and was reintroduced somewhere along the line.

Steps to reproduce

  1. Go to the Analytics module settings in edit mode.
  2. Click on the "Account" dropdown.
  3. See issue if you have a lot of accounts.

Screenshots

From the screenshot there is another account before the "Asvin test" account which is completely hidden by the header and inaccessible.

image


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • Open Site Kit menus should not be obstructed by the main header element that spans across the top of all Site Kit screens
  • A VRT test should be added to cover this scenario

Implementation Brief

  • Revert changes from Fix tooltip overlapping. #6431
  • Using assets/js/components/JoyrideTooltip.js,
    • Add 2 new props:
      • onTourStart: callback function called when tour has started
      • onTourEnd: callback function called when tour has ended
    • Update the callback prop for Joyride to call the above functions:
      • if type === EVENTS.TOUR_START, call onTourStart,
      • if type === EVENTS.TOUR_END, call onTourEnd.
  • Using assets/js/modules/analytics/components/settings/GA4SettingsControls.js,
    • add the 2 newly added props to JoyrideTooltip.
      • onTourStart should have a function as value which adds a custom class name (for e.g googlesitekit--has-visible-tooltip) to document.body.
      • onTourEnd should have a function as value which removes the custom class name which was added by onTourStart.
  • Add styles which sets the z-index of .googlesitekit--has-visible-tooltip #adminmenuwrap to 10, which is lower than the z-index of the tooltip which itself has a lower z-index than the header.

Test Coverage

  • No new tests to be added.

QA Brief

  • Follow steps in the Steps to reproduce section and ensure that select dropdowns show above the header.

Changelog entry

  • Fix bug that could cause select component to be hidden underneath the Site Kit header.
@aaemnnosttv aaemnnosttv self-assigned this Feb 10, 2023
@aaemnnosttv aaemnnosttv added Type: Bug Something isn't working P2 Low priority labels Feb 10, 2023
@aaemnnosttv aaemnnosttv removed their assignment Feb 10, 2023
@asvinb asvinb self-assigned this Feb 10, 2023
@asvinb
Copy link
Collaborator Author

asvinb commented Feb 10, 2023

Bug was introduced while trying to fix the issue described here where the WordPress left menu is overlapping tooltips. The z-index for the Site Kit header was increased from 12 to 10000 because the z-index of the left menu is 9990 . Trying to see if there are alternatives to increasing the z-index to such as high number.

@asvinb asvinb added the Exp: SP label Feb 10, 2023
@asvinb asvinb removed their assignment Feb 10, 2023
@eugene-manuilov eugene-manuilov self-assigned this Feb 10, 2023
@eugene-manuilov
Copy link
Collaborator

IB ✔️

@eugene-manuilov eugene-manuilov removed their assignment Feb 10, 2023
@eugene-manuilov eugene-manuilov self-assigned this Aug 7, 2023
@eugene-manuilov eugene-manuilov removed their assignment Aug 8, 2023
@tofumatt tofumatt assigned tofumatt and unassigned tofumatt Aug 9, 2023
@mohitwp mohitwp self-assigned this Aug 9, 2023
@mohitwp
Copy link
Collaborator

mohitwp commented Aug 16, 2023

QA Update ✅

  • Tested on dev environment.
  • Verified Site Kit menus are not obstructed by the main header element that spans across the top of all Site Kit screens.
  • Verified for analytics and tag manager settings screen in edit mode.
  • Verified for analytics and tag manager set up screen.

Latest

image

Develop

image

image

image

image

@mohitwp mohitwp removed their assignment Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Exp: SP P2 Low priority Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants