Feature Description
The dashboard tour tooltips can be clipped or off-screen in a number of popular viewports.
We should ensure that the tooltips are fully visible and well-positioned in all viewports.
This was raised in the bug bash, see this Asana task, and also this related task.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- The welcome tour tooltips should be improved so that they are not cut off in any viewport.
- They should have ample space in their surroundings so that they are fully visible and well positioned.
- Tooltip targets are adjusted where necessary to meet the above requirements - we don't have to adhere to the Figma design if it's not technically feasible, but should follow the intent of the design as closely as we can.
Implementation Brief
In assets/js/components/TourTooltips.js
In assets/js/feature-tours/welcome.ts
Test Coverage
- Update any failing VRT tests.
QA Brief
- After setup, visit the Site Kit dashboard, click the help icon and Start a feature tour.
- Step through the tour steps forwards and backwards, verifying the following scrolling behaviour for a variety of viewports, including desktop and mobile where the viewport height is very short:
- If there's enough room in the viewport to display the entire tooltip and spotlight section, the window will scroll to center them in the viewport.
- If the tooltip and spotlight element do not fit inside the viewport:
- If the tooltip is above the spotlight element, the window will scroll so that the top of the tooltip is towards the top of the viewport.
- If the tooltip is below the spotlight element, the window will scroll so that the bottom of the tooltip is towards the bottom of the viewport.
- If the tooltip is within the spotlight element, the window will scroll so that the top of the spotlight element is towards the top of the viewport.
- When repeating the example viewports in the Asana tasks linked in the feature description above, the tooltips should never be cropped.
- Widgets with tabs should not pull focus, causing the browser to scroll away from the tour without user input, particularly on mobile.
- On mobile, smoke test the tabs in the audience "Understand how different visitor groups…" widget and "Top content over the last 28 days" widget to ensure they work as expected when navigated by keyboard and mouse.
One particular edge case worth double checking is the "Your goals, measured and clear" tooltip on mobile when the dashboard navigation wraps to two or more rows. Make sure the admin bar doesn't partially cover the tooltip. It should appear underneath the widget area and the whole tooltip should be visible in the viewport.
Changelog entry
- Ensure that tooltips in the dashboard tour are fully visible in all viewports.
Feature Description
The dashboard tour tooltips can be clipped or off-screen in a number of popular viewports.
We should ensure that the tooltips are fully visible and well-positioned in all viewports.
This was raised in the bug bash, see this Asana task, and also this related task.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
In
assets/js/components/TourTooltips.jsscrollStepIntoView()to remove the breakpoint-specific behaviour.scrollStepIntoView()logic to treat the combined target and tooltip as the scroll target, and alter scrolling behaviour based on whether or not they both fit in the viewport:60pixels and scroll to 60px away from the edge when scrolling to an edge, and include 2x60px when determining whether the tooltip and target area fits within the viewport so that the area is only considered as fitting if there is at least 60 pixels of space on either side.In
assets/js/feature-tours/welcome.tsfloaterProps.modifiers.flip.enabled = falseto the step properties.Test Coverage
QA Brief
One particular edge case worth double checking is the "Your goals, measured and clear" tooltip on mobile when the dashboard navigation wraps to two or more rows. Make sure the admin bar doesn't partially cover the tooltip. It should appear underneath the widget area and the whole tooltip should be visible in the viewport.
Changelog entry