Closed mohitwp closed 12 months ago
@mohitwp I have retested this on the latest develop branch but cannot reproduce this.
@jimmymadon I'm not able to reproduce this issue on latest develop branch. Closing this issue now.
https://github.com/google/site-kit-wp/assets/94359491/ea478bee-2359-44e4-bec4-2f3bed88f710
@jimmymadon
I'm able to reproduce this issue on dev. It is happening in two cases-
1) If any dashboard notification is appearing on main dashboard. 2) If a portion of KMW banner is hidden then on clicking on 'Connect Analytics' button banner position will shift to display the whole banner.
See attached screencast and let me know if you require a huddle.
https://github.com/google/site-kit-wp/assets/94359491/9542c6a6-78c9-45ea-ade9-73cd2178889f
AC :white_check_mark:
IB ✅
Bug Description
Steps to reproduce
Pick or tailor KMW metrics.
Disconnect Analytics.
See Connect GA CTA on dashboard.
Either "Scroll the page" further down OR reload the page with a Dashboard notification by appending the following link in the URL to your site:
/wp-admin/admin.php?page=googlesitekit-dashboard¬ification=authentication_success&slug=adsense
Click on the Connect Analytics button within the Connect GA Key Metric CTA tile.
Observe that the page jumps to the beginning of the Key Metrics widget or the to the top of the page if there is a notification before it then redirects to the Analytics Setup page.
Screenshots
https://github.com/google/site-kit-wp/assets/94359491/9542c6a6-78c9-45ea-ade9-73cd2178889f
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
In
assets/js/components/KeyMetrics/ConnectModuleCTATile.js
:Link
component used for the "Connect %s" (Connect Analytics) link. This component should have anhref
prop with a value of#
, which causes the page to jump to the top upon click.href
prop with the value of#
. This will prevent the default behavior of jumping to the top of the page.Test Coverage
QA Brief
Changelog entry