question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change "Retry" button UI in inline error notice to visually appear like an inline link

See original GitHub issue

Follow-up to #5494: While that issue correctly implements the “Retry” button in inline notices (e.g. in module setup flows), having a primary CTA button in those error notices looks a bit odd (see https://github.com/google/site-kit-wp/issues/5494#issuecomment-1289347228).

They should become a regular inline link instead.


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

Acceptance criteria

  • The “Retry” button in the ErrorNotice component should be visually rendered differently, looking more like a regular link. Additionally, it should appear right after the error text, i.e. not on a new line.
    • This only applies to the ErrorNotice component outside of the SK dashboard, in the dashboard widgets (see ReportError component), the “Retry” button should continue to appears as it does now.

Implementation Brief

  • In assets/js/components/ErrorNotice.js:
    • Simply replace the <Button /> component for Retry with a <Link /> component.
    • Replace the <Fragment /> with a div having display: flex and a suitable CSS gap value to render the <Link /> directly after the <ErrorText />.

Test Coverage

  • No tests need to be added/updated.
  • Update VRT references if required.

QA Brief

Update: This has been reverted so please do a regression test by following the QAB on #5494 and verifying that the Error Notice displays with the link as a button like so:

image

~* Make error notice appear (eg try setup empty property in GA4 activation banner)~ ~* Check the error notice appearing inline as per the screenshot below~

Screenshot Screenshot 2022-10-29 at 23 36 46

Changelog entry

  • N/A.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
techanvilcommented, Nov 18, 2022

Thanks @felixarntz, I have created a PR to revert the change: #6165

2reactions
felixarntzcommented, Nov 17, 2022

Approval ❌

@techanvil @nfmohit @sashadoes After taking a closer look, this issue’s implementation will unfortunately need to be reverted. This is not due to the implementation itself, but rather because the ACs here are not really helping with the UX problem from before, they just introduce another new UX problem.

After reviewing this with @aaemnnosttv and @marrrmarrr, while both versions of the UI are problematic, it’s better for now to stick to the old one. That said, we should definitely address this in a proper way, for which I’ve opened #6162.

The PR for this issue should be reverted and afterwards it can be closed as invalid.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Contribute to google/site-kit-wp · GitHub
Change "Retry" button UI in inline error notice to visually appear like an inline link P0 High priority Type: Enhancement Improvement of an...
Read more >
Error Message Guidelines - Nielsen Norman Group
Established wisdom holds that good error messages are polite, precise, and constructive. The Web brings a few new guidelines: Make error messages clearly ......
Read more >
Snackbars - Material Design
Snackbars inform users of a process that an app has performed or will perform. They appear temporarily, towards the bottom of the screen....
Read more >
should buttons that look like links have the exact same ...
OR, does it make sense to visually differentiate between an inline button vs. a link? buttons · accessibility · Share.
Read more >
Concurrent UI Patterns (Experimental) - React
When we click the “Next” button to switch the active profile, ... If you mount a new <Suspense> boundary as a part of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found