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
Idea Hub: Improve UI for Draft Post button and link #4266
Comments
@wpdarren @aaemnnosttv @marrrmarrr Correct me if I'm wrong, but I'm not sure we've defined a proper solution for those UI problems. This may need some input from UX for best path to move forward, unless we can use some uncontroversial straightforward fix for all the issues that relies on current Site Kit UI patterns? |
@felixarntz probably the simplest fix would be to replace the text button with a circular icon button that we use in the other tabs. An "eye" icon for view would work well I think and the "View draft" could stay as the tooltip. This would make the layout more consistent with others as well. |
@marrrmarrr What are your thoughts on this? How do you feel about @aaemnnosttv's suggestion? Should we involve UX in this? |
I'll check in with Sam on this one; the eye icon in general sounds good, but I'm conscious that soon we'll be using it for the "view-only" dashboard up top, so we could have a group of users that see it in both places and it would mean two different things. |
The IB here mostly looks good, but there's mention of removing the The SVG icon can't be used directly in-place of the button text, or the element will be inaccessible to keyboard/screenreader users. Can you update the IB to include either an (If none of those icons are labeled for assistive technology, we should implement that as part of this issue.) |
Hi @tofumatt, thanks for reviewing this. The button already has a site-kit-wp/assets/js/modules/idea-hub/components/dashboard/DashboardIdeasWidget/utils.js Lines 60 to 66 in 7d38fb9
And, set here on the Lines 60 to 72 in 7d38fb9
|
Oh, perfect, right on! In that case this is good-to-go, thanks for the clarification on that one 👍🏻 IB ✅ |
@tofumatt I don't see a PR associated to this ticket. I checked the pull requests tab filtered by your name, however, I couldn’t see any related PR. |
Argh, VSCode didn't submit the PR, my bad! 😓 I've sent it through now. 😅 |
Bug Description
On the Idea hub widget, in the 'New ideas' tab, when you click on the
start a draft post
icon, you will notice that it has low contrast on hover.Then, go to the
Drafts
tab, the idea will appear and next to it is aView draft
link. It looks like a hybrid hyperlink/button (underlined, title-case, text on button-like background) and the text looks smaller than other links, but is same size as other source links (12px).These are UI issues addressed in the bug bash.
https://app.asana.com/0/1200491083500938/1200759450014524/f
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
assets/svg/icons/idea-hub-view.svg
.Within
assets/js/modules/idea-hub/components/dashboard/DashboardIdeasWidget/Idea.js
:View draft
text from theIDEA_HUB_BUTTON_VIEW
button:site-kit-wp/assets/js/modules/idea-hub/components/dashboard/DashboardIdeasWidget/Idea.js
Line 205 in 3fccbdc
Within
assets/js/modules/idea-hub/components/dashboard/DashboardIdeasWidget/utils.js
:idea-hub-view.svg
icon asViewIcon
.[ IDEA_HUB_BUTTON_VIEW ]: ViewIcon
to theactivityIconMap
object.Within
assets/sass/components/idea-hub/_googlesitekit-idea-hub-dashboard-ideas-widget.scss
::not(.googlesitekit-idea-hub__actions--view)
pseudo-class from the following lines:site-kit-wp/assets/sass/components/idea-hub/_googlesitekit-idea-hub-dashboard-ideas-widget.scss
Lines 207 to 208 in 3fccbdc
button
qualifier from thebutton.mdc-button
selector in the second of the above lines, with with the net result:Test Coverage
QA Brief
The tab, with content, should match the Figma mocks:
Changelog entry
View draft
button on the Idea Hub widget to display an icon instead of the text.The text was updated successfully, but these errors were encountered: