AITab UX QA - Highlights Component
Categories
(Core :: Machine Learning: Frontend, defect, P2)
Tracking
()
| 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:
- Padding-block needs to be 80px, currently 60px
- Body text needs a line-height of 28px
- Highlights title should render visually as h2 (confirm)
- List item titles should render visually as h3, semantically they should be p or span (confirm)
- Spacing between title and content should be 48px
- Gap between item title and item content should be 32px
- Gap between each highlight item should be 48px
- 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)
- 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)
Updated•1 month ago
|
Comment 1•1 month ago
|
||
| frontend-triage | ||
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.
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"
Updated•1 month ago
|
Updated•1 month ago
|
Backed out for causing style lint failures
Updated•1 month ago
|
Missed a linting mechanism locally, all fixed now. Sorry about that and thanks!
Comment 10•1 month ago
|
||
| bugherder | ||
Comment 11•1 month ago
|
||
Verified as fixed with latest Nightly 160.0a1 under macOS 27.
Description
•