Closed Bug 1786389 Opened 4 years ago Closed 4 years ago

[Colorway Closet] Vertical spacing and minor font/color tweaks

Categories

(Firefox :: Theme, enhancement, P2)

enhancement
Points:
3

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: victoria, Assigned: amy)

References

Details

(Whiteboard: [fidefe-colorway-closet])

Attachments

(1 file, 1 external file)

Attached image image.png —

Colorway Closet is looking awesome in Nightly! There are just a few minor spacing and font/color tweaks that would help tighten up the look of the modal.

  • less space above and below the color picker. I noticed that :root { --body-rows: auto 4fr 1fr; } gets very close

  • #collection-title {font-size: 1.5em;}

  • #collection-expiry-date: {font-size: .9em} - also for the linear-gradient, there should be purple-50, magenta-50, and orange-50 variables somewhere, which are brighter colors

  • #colorway-description {font-size: 1em;}

  • #colorway-intensity-selector-label {font-size: 1em; color: var(--in-content-deemphasized-text);}

  • #colorway-intensity-radios > label {border: 1px solid var( --in-content-border-color);}

  • 10px more right padding in the modal to match the left side

This looks like what we want for the expiry gradient: --card-border-zap-gradient

Summary: [Colorway Closet] Vertical spacing UX tweaks → [Colorway Closet] Vertical spacing and minor font/color tweaks

Also, the changes I'm suggesting would shorten the content so the whole panel would also need to be shortened.

Blocks: 1780266
No longer blocks: colorway-closet
Type: defect → enhancement
Priority: -- → P2
Whiteboard: [fidefe-colorway-closet]
Points: --- → 3
Assignee: nobody → achurchwell

Bug 1786858 will change the base font size of the modal, making it system-dependent. So we might want to reconsider the em values listed in comment 0.

Depends on: 1786858

(In reply to Dão Gottwald [::dao] from comment #4)

Bug 1786858 will change the base font size of the modal, making it system-dependent. So we might want to reconsider the em values listed in comment 0.

Thanks for the head's up, it sounds like we may need to update all of the em values to pixels for consistency?

Attachment #9291017 - Attachment description: WIP: Bug 1786389 - UX font/color/spacing tweaks. → Bug 1786389 - UX font/color/spacing tweaks. r=dao,kpatenio

This is looking so much better! Thank you!

The one thing I noticed that in the latest Nightly, everything seems about 20-30% smaller than in figma, particularly the fonts and modal width. An issue that comes up is that when you switch between colorways, you see the same image switching behind the modal on the Firefox View page. The modal should be larger to at least hide some of the background version of the image.

I messed around in the Inspector to get this which is how it could ideally look (sorry this has a horizontal scrollbar bug). This is basically the same as Figma but wider (more side padding).


/* colorwaycloset.css | chrome://browser/content/colorways/colorwaycloset.css */

body {
  /* height: 100%; */
  /* padding: 0 2em 1em; */
  /* font-size: var(--font-scale); */
  height: 110%;
  padding: 1em 10% 2em 8%;
  font-size: 130%;
}

#colorway-customization-panel {
  /* padding-inline-start: var(--customization-panel-padding-inline-start); */
  padding-inline-start: 4em;
}

#colorway-selector, #modal-buttons {
  /* flex: 3; */
  flex: 5;
  margin-top: 1em;
}

figure {
  /* margin: 1em 0 0; */
  margin: 0;
}

body > header {
  /* margin-top: 1em; */
  margin-top: 0.5em;
  margin-left: -3.5em;
}

#collection-expiry-date {
  /* font-size: 1.1em; */
  font-size: 1em;
}

#colorway-selector {
  /* flex: 5; */
  margin-top: 0;
}

/* Element | chrome://browser/content/browser.xhtml */

/* vbox.dialogTemplate:nth-child(2) > hbox:nth-child(1) > browser:nth-child(1) { */
.dialogOverlay-1 > hbox:nth-child(1) > browser:nth-child(1) {
  width: 950px;
  height: 560px;
}

/* Element | chrome://browser/content/colorways/colorwaycloset.html */

html {
  /* height: 40em; */
  height: 46em;
}

/* Element | chrome://browser/content/browser.xhtml */

.dialogStack {
  /* --inner-height: 440px; */
}

/* common-shared.css | chrome://global/skin/in-content/common-shared.css */

html|h1 {
  /* margin: 0; */
  /* margin-bottom: .5em; */
}

Depends on: 1788693

If the recommended resolution is unable to be included in 106 release, we could do a quick fix where we darken the modal backdrop from .45 to .75 and then we do the recommended fix as a fast follow. This option is available to us.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: