Improve HCM styles for the accordion cards to follow Figma spec closely
Categories
(Firefox :: Shopping, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr115 | --- | unaffected |
firefox118 | --- | unaffected |
firefox119 | --- | wontfix |
firefox120 | --- | wontfix |
firefox121 | --- | wontfix |
firefox122 | --- | verified |
People
(Reporter: atrif, Assigned: kpatenio)
References
(Blocks 1 open bug)
Details
(Keywords: access, Whiteboard: [fidefe-shopping] )
Attachments
(4 files)
Found in
- 119.0b7
Affected versions
- 120.0a1 (2023-10-10)
- 119.0b7
Tested platforms
- Affected platforms: Windows 11x64
- Unaffected platforms: Ubuntu 22.1, macOS 12, Windows 10x64
Preconditions
- Contrast theme set to Night Sky
Steps to reproduce
- Open a random Amazon product and observe the review checker.
- Compare the review checker with Figma
Expected result
- The how we determine review quality and Settings strings are yellow.
Actual result
- The how we determine review quality and Settings strings are white.
Regression
- Not applicable
Additional notes
- Attached a screenshot.
- This applies to all review checker states.
Updated•1 year ago
|
Reporter | ||
Comment 1•1 year ago
|
||
Adding the screenshot again for better visibility. Sorry for the spam.
From debugging locally, it seems that shopping card accordion variants use --in-content-text-color
for the header (which I believe eventually ends up being CanvasText
), rather than ButtonText
like expected in the Figma.
Updated•1 year ago
|
Context: original bug was focused on inconsistencies in string colours between the Figma spec and actual implementation for the accordion cards. The Figma spec shows the accordion cards resembling dropdowns in HCM, thus using ButtonText
for the actual card header and chevron.
Changing solely the string colour would've made text harder to read in some cases due to differing backgrounds, etc., so I implemented changes that improve HCM styling for the accordion card overall. But in doing so, I ended up doing all the work for Bug 1856714. I talked with emcminn, and we're thinking of marking that bug as a dupe and re-purposing this one instead.
Updated•1 year ago
|
Updated•1 year ago
|
Comment 7•1 year ago
|
||
bugherder |
Comment 8•1 year ago
|
||
Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.
Comment 9•1 year ago
|
||
The patch landed in nightly and beta is affected.
:kpatenio, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox121
towontfix
.
For more information, please visit BugBot documentation.
Updated•1 year ago
|
Reporter | ||
Comment 10•1 year ago
•
|
||
Hello! I looked over this issue with Firefox 122.0a1 (2023-12-06) on Windows 11x64 with Night Sky High contrast and it seems that there are still some discrepancies between Figma and actual behavior and I don't know if this is expected or not:
- the
Not now
button has a yellow square around it in the latest nightly and it does not in Figma - the
Settings
andHow we determine review quality
cards are surrounded by a yellow square as well in the latest nightly and in Figma by a grey one
Are these behaviors expected or should we file a separate issue? Thank you!
Assignee | ||
Comment 11•1 year ago
|
||
(In reply to Alexandru Trif, Desktop QA [:atrif] from comment #10)
Created attachment 9367421 [details]
image.pngHello! I looked over this issue with Firefox 122.0a1 (2023-12-06) on Windows 11x64 with Night Sky High contrast and it seems that there are still some discrepancies between Figma and actual behavior and I don't know if this is expected or not:
- the
Not now
button has a yellow square around it in the latest nightly and it does not in Figma- the
Settings
andHow we determine review quality
cards are surrounded by a yellow square as well in the latest nightly and in Figma by a grey oneAre these behaviors expected or should we file a separate issue? Thank you!
Thanks for verifying the changes atrif! Could you please file a new issue for the inconsistency with the "Yes try it"/"Not now" card? I think I forgot to update the buttons for that card in my patch.
As for the Settings
and How we determine review quality
cards, @ayeddi do you know if this expected?
Reporter | ||
Comment 12•1 year ago
|
||
(In reply to kpatenio from comment #11)
Are these behaviors expected or should we file a separate issue? Thank you!
Thanks for verifying the changes atrif! Could you please file a new issue for the inconsistency with the "Yes try it"/"Not now" card? I think I forgot to update the buttons for that card in my patch.
Sure! I filled in bug 1868941. Thank you!
Comment 13•1 year ago
|
||
(In reply to kpatenio from comment #11)
(In reply to Alexandru Trif, Desktop QA [:atrif] from comment #10)
Created attachment 9367421 [details]
image.png
(...)
As for theSettings
andHow we determine review quality
cards, @ayeddi do you know if this expected?
Since these cards are somehow active UI, thus having the border in ButtonText
(appears yellow in Win11 Dark Sky HCM) would be better than in CanvasText
(appears white), thus the current Nightly behavior would work.
Ideally, we'd want to have only the <summary>
to have the ButtonText
and, when the card is opened/expanded, the left-bottom-right border under it (the border for the rest of <details>
to have CanvasText
color), but since the expected CSS changes did not work as expected for this details/summary pattern, this does not have to change. ButtonText
would be a good solution atm.
Thank you for checking it!
Updated•1 year ago
|
Reporter | ||
Comment 14•11 months ago
•
|
||
Verified fixed with Firefox 122.0b7 on Windows 11 x64 with Night Sky high contrast theme and per comment 13. The Review Checker state from comment 1 is now displayed as in Figma spec.
Description
•