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

Tooltips for Compatibility Tool #1400

Closed
1 of 4 tasks
postphotos opened this issue Sep 5, 2018 · 31 comments · Fixed by #1448
Closed
1 of 4 tasks

Tooltips for Compatibility Tool #1400

postphotos opened this issue Sep 5, 2018 · 31 comments · Fixed by #1448
Assignees
Labels
Developer Tools WS:UX Work stream for UX/Front-end

Comments

@postphotos
Copy link
Contributor

postphotos commented Sep 5, 2018

As a developer user debugging an error in the Compatibility Tool, I should have tooltips that hint at what given columns do to explain what they mean and how I should use that information.

As a user gets stuck or confused, they should have both user-friendly hints and more verbose documentation at what the plugin does, why it's organized this way and how the tool intends to allow them to activate AMP quickly.

@postphotos postphotos changed the title Tooltips for Compatability Tool Tooltips for Compatibility Tool Sep 10, 2018
@postphotos
Copy link
Contributor Author

I've fleshed out the requirements for this story.

@jacobschweitzer
Copy link
Contributor

Hey @postphotos , I've been working on #1362 and have gotten to the point I need some content for the tooltips and some clarification about how they should look.

The only way I'm aware of to make tooltips in core WP is to use admin pointers. It'd look like this:

https://cl.ly/3f43d4fae784

How does that look? It opens when the user hovers over the "?" icon and closes when they click the dismiss link at the bottom.

@postphotos
Copy link
Contributor Author

postphotos commented Sep 11, 2018

Thanks for sharing your thoughts/WIP @jacobschweitzer!

While it does vary from the mocks that @jillchu had presented at an earlier state, I'm OK with this as it matches the design styles of the pointer from #1254, especially if it's leveraging a WP Core design pattern and if may be less engineering effort to complete.

@jwold - are you OK with this for a "tooltip" style?

@jwold
Copy link
Collaborator

jwold commented Sep 11, 2018

@jacobschweitzer using this tooltip you mentioned should be perfect. Thank you! cc @postphotos

@johnwatkins0
Copy link
Contributor

johnwatkins0 commented Sep 20, 2018

Moving this to code review, @kienstra and @westonruter. The PR is #1448. Thanks!

@westonruter
Copy link
Member

Tooltip text needs to still be finalized.

@westonruter westonruter reopened this Sep 22, 2018
@kienstra
Copy link
Contributor

kienstra commented Sep 24, 2018

Minor Styling Issue

The triangle of the 'tooltip' now points to the right of the ?, but ideally, it should point to the ?:

triangle-admin-pointer

This looks to be the case wherever the tooltips are used:

Please move the entire admin pointer to the left.

@GaryJones
Copy link
Contributor

@afercia @rianrietveld - what is the WP core approach for accessible tooltips? I don't recall seeing any other plugins using the admin pointers for this?

@kienstra
Copy link
Contributor

Good question, @GaryJones!

@kienstra
Copy link
Contributor

kienstra commented Sep 25, 2018

Current 'Tooltip' Copy

As @westonruter mentioned, the tooltip copy still needs to be determined.

Here's the current copy:

Status

An accepted validation error is one that will not block a URL from being served as AMP; the validation error will be sanitized, normally resulting in the offending markup being stripped from the response to ensure AMP validity.

status-tooltip

Details
The 'tooltip' for Details is only a placeholder, and still needs copy.

@afercia
Copy link

afercia commented Sep 25, 2018

@GaryJones the legacy core "pointers" aren't accessible. They've been discussed a few times in the last years and their usage generally discouraged. Reading in the comments above:

It opens when the user hovers over the "?" icon

how about keyboard users? how about communicating to users the "?" icon opens a sort of modal? I'd rather look at the popover implementation in Gutenberg, where a toggle button with a proper aria-label and visible button tooltip opens a floating panel that behaves like sort of a modal.

@jwold
Copy link
Collaborator

jwold commented Oct 9, 2018

@kienstra

Followup up on feedback from @afercia I'd like to propose a design change to all the tooltips in the AMP Plugin, using popover as the base for the tooltips, similar to how Gutenberg now does this.

screen shot 2018-10-09 at 10 15 39 am

It appears we can still do bold text, even increase font sizes (for inline headers, just not in blue backgrounds), and a "x" for dismiss.

Here's an example of changes we could make to the AMP Plugin tooltips to be more in line with the design style of the popovers from Gutenberg.

screen shot 2018-10-09 at 10 17 31 am

My guess is that we could take more liberties in the style and design of these updated popovers to be more eye catching, but for now we should probably stick to what's been done in Gutenberg.

cc @postphotos

@postphotos
Copy link
Contributor Author

Updated to add AC4 (see #1479).

@kienstra
Copy link
Contributor

kienstra commented Oct 22, 2018

Question About AC4

Hi @postphotos,
What do you think about removing AC4 (Re-implement to meet the spec of #1479)? Issue #1479 is on the v1.1 project.

Thanks, Leo!

@kienstra
Copy link
Contributor

Status

This issue is awaiting the product site to be able to link to it in the copy (AC2, AC3). There's no action needed now.

@kienstra kienstra assigned kienstra and unassigned jwold and csossi Oct 24, 2018
@kienstra
Copy link
Contributor

Moving Into To Do

As there is no action needed now, I'm moving this into 'To Do.'

When the product site has the URL ready, I'll add it to the tooltip, and request QA from @csossi.

@kienstra
Copy link
Contributor

Moving To 1.1 Project

PR #1670 was the only remaining task for this issue planned for the 1.0 release.

But the links in it aren't to a live site, so I'm moving this issue out of the 1.0 project.

@kienstra kienstra added this to the v1.1 milestone Dec 4, 2018
@westonruter westonruter removed this from the v1.1 milestone Mar 6, 2019
@westonruter
Copy link
Member

This should be tackled with #2316.

@kmyram kmyram added the WS:UX Work stream for UX/Front-end label May 15, 2020
@jwold
Copy link
Collaborator

jwold commented Jan 19, 2021

Weston > These popups are not the correct way to implement a tooltip from an accessibility perspective. Note that there are likely more considerations for accessibility. The primary focus for now though should be moving over to use the Gutenberg component that's responsible for tooltips (found in the edit post screen). That is part of the refactoring of these screens to be using React components. This will happen as part of that refactoring, and we may want to close this issue to say that it will be done as part of #2316.

@jwold jwold closed this as completed Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Developer Tools WS:UX Work stream for UX/Front-end
Projects
None yet
Development

Successfully merging a pull request may close this issue.