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

Accessibility: Plugin favorites heart color contrast failure #265

Open
amberhinds opened this issue Apr 16, 2024 · 11 comments
Open

Accessibility: Plugin favorites heart color contrast failure #265

amberhinds opened this issue Apr 16, 2024 · 11 comments
Labels
Accessibility Issues related to keyboard navigation, screen readers, etc [Site] Plugins [Status] Needs Design Feedback Feedback is needed on an existing or new component

Comments

@amberhinds
Copy link

On the plugin single page (Gutenberg plugin test page), the plugin favorites heart in its unselected state is #cbcdce on a white background which is 1:59:1.

Screenshot 2024-04-16 at 5 45 36 PM

Here's the contrast on WebAIM's checker. This fails for UI components and many people with low-vision will not even know that is there.

Because we don't want to fail Use of Color, it would not be sufficient to just darken the color of the heart. I'd recommend adding a border to it so it has a border and light or no color if unselected and a solid color if hovered or selected.

@StevenDufresne
Copy link
Contributor

@dd32 Mentioned we could use new "star" icon used elsewhere in a previous ticket which makes sense.

Image

@ndiego
Copy link
Member

ndiego commented Apr 17, 2024

I like the star, and it makes "favoriting" things consistent with the new Patterns design.

While we should definitely fix this issue asap, I don't think it should block launching the new design since the color is the same as it is on the current theme.

@StevenDufresne
Copy link
Contributor

I wonder if it would be mistaken with plugin reviews?

Screenshot 2024-04-17 at 2 26 33 PM

@ndiego
Copy link
Member

ndiego commented Apr 17, 2024

I wonder if it would be mistaken with plugin reviews?

That's true, but I think "staring" something is also a common way to favorite things. I am thinking about Slack and Figma.

staring

Would it be possible to add a tooltip to the icon (like in the gif) that provides more context about what it is? Even with the current heart icon, it's not 100% clear what it does if you don't associate a heart with favoriting a plugin.

Thoughts @WordPress/meta-design?

@jasmussen
Copy link

Yep, good to have a tooltip.

@ndiego
Copy link
Member

ndiego commented Apr 17, 2024

Also, we could keep this star grey/black like it is in the Patterns refresh so it's visually different than the pomegranate star ratings for the plugins.

@amberhinds
Copy link
Author

amberhinds commented Apr 17, 2024 via email

@ndiego
Copy link
Member

ndiego commented Apr 17, 2024

It might be helpful to make it more clear where to view favorites.

In the new design, there is a link in the local navigation.

image

@ryelle
Copy link
Contributor

ryelle commented Apr 17, 2024

There's a page in wp-admin where you can view a user's favorites (presumably yours, but there's no connection between wp.org and assorted WordPress sites). They also show up on your profile.

Add new plugins, favorites tab

Maybe a little copy could be added to the favorites page, linking off to some documentation (like https://wordpress.org/documentation/article/plugins-add-new-screen/)? (Though this is getting into separate issue territory 🙂 )

@amberhinds
Copy link
Author

I have a separate issue that I opened for larger functionality issues on this button beyond color contrast: #266

It probably makes sense for this to be part of that discussion, because the role needs to be changed anyway. I will add some additional thoughts there and link back to these comments.

@fcoveram
Copy link

fcoveram commented May 2, 2024

I think we’re mixing three different concepts here. The actions I have noticed on the web when browsing and interacting with directories are:

  • Liking: A +1 action to note preference. In many cases it influences the recommendation algorithm.
  • Saving: Adding something to one or several collections. Those can be public or private.
  • Rating: Scoring based on a scale. Sometimes, the evaluation is public and users can see their scorings.

The last two are currently on the WordPress site, unless I’m missing something. If we are using stars for rating, then we can not use it for saving. It would quickly lead to confusion.

There is no standard icon for saving, it swings between a heart and a bookmark. Therefore, the safest way to reduce misinterpretations is by adding a label next to it. In that vein, and following @ndiego's example, Figma also uses heart and bookmark for liking and saving, respectively.

Screenshot of actions in Figma Community

Regarding preferences, I’m drawn to using a bookmark icon. The heart feels like an overrepresentation of the action as “love” is also conveyed with the heart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accessibility Issues related to keyboard navigation, screen readers, etc [Site] Plugins [Status] Needs Design Feedback Feedback is needed on an existing or new component
Projects
Status: 🛑 Pending discussion
Development

No branches or pull requests

6 participants