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.

Show tooltips for Idea Hub icon buttons

See original GitHub issue

The icon buttons in the Idea Hub widget should have tooltips, per the Figma file.

See https://app.asana.com/0/1200491083500938/1200625443460145/f


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

Acceptance criteria

  • The icon buttons in the Idea Hub widgets should have tooltips using the same approach and style that is already present for e.g. the global help menu. Here are the labels to use:
    • “Save for later” (for the pin icon in the “New” tab)
    • “Dismiss” (for the x icon in the “New” tab)
    • “Remove from saved” (for the “unpin” icon in the “Saved” tab)
    • “Start a draft post” (for the create draft icon in both “New” and “Saved”)

Implementation Brief

  • Inside assets/js/modules/idea-hub/components/dashboard/DashboardIdeasWidget/Idea.js:
    • Add a title prop with value “Start a draft post” to the IDEA_HUB_BUTTON_CREATE button
    • Make sure you use appropriate i18n, i.e. __( 'Start a draft post', 'google-site-kit' )
  • Repeat for the other buttons, adding the labels in the AC as title attributes.
  • This should force the Button component to render with a tooltip.

Test Coverage

  • No new tests required.

Visual Regression Changes

  • It’s possible that VRT images relating to the DashboardIdeasWidget component might need updating.

QA Brief

  • Idea Hub Icon Buttons will have tooltip with the texts from AC.

Changelog entry

  • Add tooltips for action buttons in the Idea Hub dashboard widget.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
eugene-manuilovcommented, Sep 6, 2021

@wpdarren I think that X there is a well-known pattern to close something and people won’t need a tooltip for it. But we need to make sure that it has the appropriate ARIA label to let screen readers read it correctly.

1reaction
aaemnnosttvcommented, Sep 1, 2021

when I read “create”, I read it as WordPress will create it for me - which is also technically accurate, but it makes me wonder whether people think it’ll actually populate it with content or something.

@felixarntz that’s a good point, I didn’t make that association. In that case, “start” is probably the simplest “safe” word to use here 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tooltips for buttons - Qlik Community - 1709800
We would like to propose an enhancement on the recently introduced native Qlik Sense buttons (Assets > Charts > Button).
Read more >
Specifying the icon source and tooltip for an Icon control - Pega
Using images and tooltips to indicate an icon's purpose makes it easier ... Image and click the Show Image Viewer icon for the...
Read more >
Icon button | IntelliJ Platform UI Guidelines
A toolbar icon button is an icon that appears on a toolbar. ... Show a tooltip with the button name on mouse hover....
Read more >
Icon reference | IntelliJ IDEA Documentation - JetBrains
If you want to know what action a button performs, hover the mouse pointer over it to display a tooltip with the action...
Read more >
Tooltip for Incident icons on form. - Ivanti Community
As far as I know there is only tooltips on buttons...buttons in the toolbar mind you. Immanuel Jungheim. Consultant.
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