Closed Bug 2080936 Opened 1 month ago Closed 1 month ago

AITab UX QA - Highlights Component

Categories

(Core :: Machine Learning: Frontend, defect, P2)

defect
Points:
1

Tracking

()

VERIFIED FIXED
160 Branch
Tracking Status
firefox160 --- verified

People

(Reporter: mlucks, Assigned: jlewis)

References

(Blocks 1 open bug)

Details

(Whiteboard: [aiaug])

Attachments

(1 external file)

Paige has conducted round 1 of UX QA fixes for AITab/Smart Page, please refer to this Figma for visuals to go along with the notes: https://www.figma.com/design/sIgXsbSFZjKIcfErMoBgLr/Smart-Window-Q3?node-id=20752-133296&m=dev

For the Highlights component, please update the following:

  1. Padding-block needs to be 80px, currently 60px
  2. Body text needs a line-height of 28px
  3. Highlights title should render visually as h2 (confirm)
  4. List item titles should render visually as h3, semantically they should be p or span (confirm)
  5. Spacing between title and content should be 48px
  6. Gap between item title and item content should be 32px
  7. Gap between each highlight item should be 48px
  8. The border color for highlight items should be smartwindow-border-color (this may or may not be in ai-window-shared, will need to redefine for AITab styles)
  9. Confirm eyebrow styles are correct (font size should be 15px, however this is pulling from the token font-size-root, confirm where that token is being set/make a new token if necessary)

aitab-highlights.css still uses padding: 60px 118px and a var(--space-xxlarge) (32px) gap between the title and the list, and .aitab-highlight-body at #73-76 sets no line-height, so it renders at normal. Items 3 and 4 already hold: aitab-highlights.mjs renders the title as an <h2>, and item titles at #72 are <p class="aitab-heading-3">, which browser_aitab_blocks.js asserts are not h3.

Fix: In aitab-highlights.css, change the padding to 80px 118px, add line-height: 28px to .aitab-highlight-body, and set the .aitab-highlights gap to 48px through a :host custom property, following --aitab-list-row-gap in aitab-list.css. For item 6, the .aitab-highlight column gap at #45 is already 32px, so only the 16px row gap used when an item stacks (:only-child or below 560px) changes, to var(--space-xxlarge); if the mock means the spacing between items instead, that is the 24px .aitab-highlights-list gap at #36.

Suggested severity: S4. Every item is a spacing or typography value on the Highlights block with no functional effect, and two of the six already match the spec.


If you'd like to provide feedback on this comment, please use the 👍 or 👎 reaction.
If you want to categorize your feedback you can add one of the following tags: ai-triage-{wrong-file, wrong-cause, hallucination, out-of-scope, not-a-bug, wrong-fix, shallow-fix, wrong-severity}.

Needinfo hackbot@mozilla.tld to have a patch generated for this bug, include any questions or directions as needed in your comment.

  1. container-type: inline-size; is breaking the width on the highlights component

per :mlucks "oh i know why its because i ripped out the container queries and i missed a spot"

Attachment #9658799 - Attachment description: WIP: Bug 2080936 - Apply the round 1 UX QA spacing, line-height and border fixes to the AITab Highlights block. → Bug 2080936 - Apply the round 1 UX QA spacing, line-height and border fixes to the AITab Highlights block.
Assignee: nobody → jlewis
Status: NEW → ASSIGNED
Pushed by jlewis@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/966ec1a691df https://hg.mozilla.org/integration/autoland/rev/a8a7f2808e66 Apply the round 1 UX QA spacing, line-height and border fixes to the AITab Highlights block. r=mlucks
Pushed by amarc@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4b6bf1edb3bb https://hg.mozilla.org/integration/autoland/rev/4f4dbb1e8b16 Revert "Bug 2080936 - Apply the round 1 UX QA spacing, line-height and border fixes to the AITab Highlights block. r=mlucks" for causing stylelint failures at aitab-highlights.css

Backed out for causing style lint failures

Flags: needinfo?(jlewis)
Attachment #9658799 - Attachment description: Bug 2080936 - Apply the round 1 UX QA spacing, line-height and border fixes to the AITab Highlights block. → Bug 2080936 - Apply the round 1 UX QA spacing, line-height and border fixes to the AITab Highlights block. r=mlucks

Missed a linting mechanism locally, all fixed now. Sorry about that and thanks!

Flags: needinfo?(jlewis)
Pushed by jlewis@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7a7520d58407 https://hg.mozilla.org/integration/autoland/rev/772f99d0d7ce Apply the round 1 UX QA spacing, line-height and border fixes to the AITab Highlights block. r=mlucks
Duplicate of this bug: 2082307
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch

Verified as fixed with latest Nightly 160.0a1 under macOS 27.

Status: RESOLVED → VERIFIED
QA Whiteboard: [QA-5482] [qa-ver-done-c160/b159]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: