-
Notifications
You must be signed in to change notification settings - Fork 293
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
Fix font problems in Idea Hub widget #4012
Comments
@johnPhillips we don't need to use the <h3 className="googlesitekit-idea-hub__title">
- { __(
+ <span>{ __(
'Ideas to write about, from actual questions people asked on Search',
'google-site-kit'
- ) }
+ ) }</span>
<Badge
label={ __( 'Experimental', 'google-site-kit' ) }
/>
</h3> |
Thanks @eugene-manuilov - IB amended. |
IB ✔️ |
QA Update: ❌@johnPhillips unfortunately, there's one place where the experimental label font is still Google Sans. When you have connected Idea hub, go to the settings, and you will see the label as per screenshot. |
@felixarntz Just to check before I address the QA feedback: I was operating under the assumption that this issue was about the dashboard widget only? |
@felixarntz disregard, sorry. It's in the ACs 🤦 |
Ready for another pass @wpdarren 👍 |
QA Update: ✅Verified:
|
Bug Description
There are two problems with the title of the Idea Hub widget, one pointed out in #3810 (comment). In addition, the title font here is
Google Sans
, which was like that in the original Figma file, but this should actually useRoboto
like we do elsewhere.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
assets/js/modules/idea-hub/components/dashboard/DashboardIdeasWidget/index.js
:.googlesitekit-subheading-1
to theh3.googlesitekit-idea-hub__title
. This will change the font-family to Roboto.h3.googlesitekit-idea-hub__title
in a<span>
, with a className such as.googlesitekit-idea-hub__title-text
.h3
should now have two children: the newspan
and the<Badge>
.Inside
assets/sass/components/global/_googlesitekit-badge.scss
:.googlesitekit-badge
. This margin is the reason for the indentation.Inside
assets/sass/components/idea-hub/_googlesitekit-idea-hub-dashboard-ideas-widget.scss
:line-height
of.googlesitekit-idea-hub__title
to1.5
. This will create a bit more space between the lines when the badge wraps.span.googlesitekit-idea-hub__title-text
, and give it apadding-right
of12px
. This will create the space that the margin on the badge provided, but will not indent the badge when it wraps.Test Coverage
Visual Regression Changes
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: