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

Inconsistent focus styles in GA4 Reporting feature tour #6926

Closed
bethanylang opened this issue Apr 19, 2023 · 6 comments
Closed

Inconsistent focus styles in GA4 Reporting feature tour #6926

bethanylang opened this issue Apr 19, 2023 · 6 comments
Labels
Exp: SP Module: Analytics Google Analytics module related issues P1 Medium priority Type: Enhancement Improvement of an existing feature

Comments

@bethanylang
Copy link
Collaborator

bethanylang commented Apr 19, 2023

Description

As reported by @techanvil in Bug Bash:

In the feature tour, the "Learn more" links have a focus border around the element, while the other focusable elements (the buttons) don't have a border.

"Learn more" is focused:

image

"Got it" is focused:

image


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

Acceptance criteria

  • All links/buttons in the feature tour (at least the GA4 Feature Tour, but possibly others) should have a focus style so focus is clear to keyboard users.
    • The focus style should match other "text buttons"/"links" in the app.

Implementation Brief

  • In assets/sass/components/tour-tooltip/_googlesitekit-tour-tooltip.scss:
    • Add the following styles for .googlesitekit-tour-tooltip .googlesitekit-tooltip-card a:focus:
      • box-shadow: none
      • outline: 1px dotted $c-interactive-inverse-focus
      • outline-offset: 3px
    • Add the following styles for .googlesitekit-tooltip-button:focus:
      • outline: 1px dotted $c-interactive-inverse-focus
      • outline-offset: 6px

Test Coverage

  • No tests need to be added/updated.

QA Brief

  • View the GA4 Reporting feature tour. To do so:
    • Without the ga4Reporting feature flag, set up a new site and connect the Analytics module with GA4.
    • Activate the ga4Reporting feature flag.
    • Go to the dashboard and view the banner that suggests you switch to the GA4 dashboard view.
    • Click on the CTA button after which in a short period of time the dashboard should switch to GA4 and the GA4 Reporting feature tour should start.
  • Using keyboard navigate through the links and buttons in the feature tour steps.
  • Verify that the actions have proper focus styles as indicated in the IB.

Changelog entry

  • Fix inconsistent focus styles in feature tours.
@bethanylang bethanylang added P1 Medium priority Type: Enhancement Improvement of an existing feature Module: Analytics Google Analytics module related issues P1 Med labels Apr 19, 2023
@tofumatt tofumatt assigned tofumatt and unassigned tofumatt May 5, 2023
@nfmohit nfmohit self-assigned this May 21, 2023
@nfmohit nfmohit removed their assignment May 29, 2023
@tofumatt tofumatt self-assigned this May 31, 2023
@tofumatt
Copy link
Collaborator

tofumatt commented Jun 6, 2023

IB ✅

@tofumatt tofumatt removed their assignment Jun 6, 2023
@nfmohit nfmohit self-assigned this Jun 30, 2023
@nfmohit nfmohit removed their assignment Jul 3, 2023
@techanvil techanvil self-assigned this Jul 4, 2023
@techanvil
Copy link
Collaborator

techanvil commented Jul 4, 2023

Hey @nfmohit, could you please add a bit more info to the QA Brief about how to trigger the GA4 Reporting feature tour? This would be helpful to save time during testing for both CR and QA.

@techanvil techanvil assigned nfmohit and unassigned techanvil Jul 4, 2023
@nfmohit
Copy link
Collaborator

nfmohit commented Jul 4, 2023

Hey @nfmohit, could you please add a bit more info to the QA Brief about how to trigger the GA4 Reporting feature tour? This would be helpful to save time during testing for both CR and QA.

Excellent point. I've added some instructions. Please let me know if they look good. Thank you @techanvil!

@nfmohit nfmohit assigned techanvil and unassigned nfmohit Jul 4, 2023
@techanvil
Copy link
Collaborator

Excellent point. I've added some instructions. Please let me know if they look good. Thank you @techanvil!

Thanks, that's great - very helpful :)

@techanvil techanvil assigned nfmohit and unassigned techanvil Jul 4, 2023
@nfmohit nfmohit assigned techanvil and unassigned nfmohit Jul 5, 2023
techanvil added a commit that referenced this issue Jul 5, 2023
…focus

Fix focus styles in GA4 feature tour
@techanvil techanvil removed their assignment Jul 5, 2023
@wpdarren wpdarren self-assigned this Jul 5, 2023
@wpdarren
Copy link
Collaborator

wpdarren commented Jul 6, 2023

QA Update: ⚠️

@nfmohit On the tooltip tour as I tab around it, I was expecting to see focus styles as I went to the back and next like I do on the learn more link. Am I missing something? Here's a screencast of what I see on the develop branch.

Screen.Capture.on.2023-07-06.at.18-57-48.1.mp4

@wpdarren wpdarren assigned nfmohit and unassigned nfmohit Jul 6, 2023
@wpdarren
Copy link
Collaborator

wpdarren commented Jul 6, 2023

QA Update: ✅

Verified:

  • Using keyboard navigate through the links and buttons in the feature tour steps.
    • The actions have proper focus styles as indicated in the IB.
tooltip.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Exp: SP Module: Analytics Google Analytics module related issues P1 Medium priority Type: Enhancement Improvement of an existing feature
Projects
None yet
Development

No branches or pull requests

6 participants