Closed nfmohit closed 9 months ago
Note: It would be good to verify with Sigal after adding the ACs to confirm if there is any improvement we've missed.
Note: There are a few other improvements that aren't a part of this issue, such as:
@sigal-teller Co-assigning this to you just to ensure that the current ACs cover all the improvements made to the individual metric tiles that have been applied in Figma to date.
For the record, Sigal and I discussed this internally and this should cover all the improvements needed. Moving to ACR.
@nfmohit Strangely, it looks like all of the screenshots here aren't appearing π€
Not sure what's happening there, but it makes it tough to review the issue in full π
The Figma link seems off too, can you double-check that stuff to make sure it references what the ACs refer to?
Thank you for the review, @tofumatt. I have updated the Figma links to correctly point to the appropriate screen. However, the screenshots in the issue does load for me. I have also checked from different browsers and devices.
Could you give it another look? Thank you!
Weird, now they're all fine! π
I guess it was a CDN thing or something π€
ACs look good, moving to IB ππ»
Looks good to me ππ»
IB β
Feature Description
In an effort to retain consistency between metric tiles and improve responsiveness across multiple devices, the design of the metric tiles has been updated in Figma, which should be implemented in the application. Here is a summary of the changes:
body/medium
.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
body/medium
.Implementation Brief
To address the AC points in order:
flex-direction
property where it has been added to.googlesitekit-km-widget-tile__title-container
for the numeric and text tile types.flex: 1
to.googlesitekit-km-widget-tile__title
.flex-direction: column
to.googlesitekit-km-widget-tile
.margin-top
of.googlesitekit-km-widget-tile__metric
for the mobile viewport - it should be4px
(i.e. the current value of-8px
plus themargin-top
value of.googlesitekit-km-widget-tile__table
which is12px
).div
around the metric and subtext elements in theMetricTileNumeric
andMetricTileText
components.display: flex
to.googlesitekit-km-widget-tile__body
for the numeric and text tile types, and use Flexbox properties to implement the layout.font-size
andline-height
properties for.googlesitekit-table__body-zero-data
to$fs-body-md
and$lh-body-md
respectively.Additionally, remove any redundant styling e.g.
flex-direction: column
can be removed from.googlesitekit-km-widget-tile--table
.Test Coverage
QA Brief
Changelog entry