VOOZH about

URL: https://phabricator.services.mozilla.com/D302057

⇱ ⚙ D302057 Bug 2027859 - Nova toolbar visual updates r=emilio


Bug 2027859 - Nova toolbar visual updates r=emilio
ClosedPublic

Authored by nsharpley on Fri, May 22, 3:03 PM.
Referenced Files
F72957814: D302057.1781829959.diff
Thu, Jun 18, 12:45 AM
F72915749: D302057.1781788804.diff
Wed, Jun 17, 1:20 PM
F72902810: D302057/new/.1781773119.diff
Wed, Jun 17, 8:58 AM
Unknown Object (File)
Tue, Jun 16, 9:54 PM
Unknown Object (File)
Tue, Jun 16, 9:54 PM
Unknown Object (File)
Tue, Jun 16, 9:54 PM
Unknown Object (File)
Tue, Jun 16, 9:54 PM
Unknown Object (File)
Tue, Jun 16, 9:54 PM

Details

Summary
  • updates toolbox back ground to have a gradient on system, light and dark themes
  • adds separator to bookmarks bar

Diff Detail

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes
Comment Actions

values for Nova will be populated/working once https://phabricator.services.mozilla.com/D302168 lands.

dao requested changes to this revision.Tue, May 26, 5:39 PM
dao added a subscriber: dao.
dao added inline comments.
browser/extensions/newtab/css/activity-stream.css
15343

Why is this part of this patch?

browser/themes/shared/browser-shared.css
335–336

What are these fallback values needed for?

337–338

The shorthand takes an image and a color, so the comma between these two seems redundant? But also, was already set as the background color. Can you just set here and leave the color alone?

toolkit/themes/shared/design-system/dist/tokens-shared.css
1154–1155

Can these just be ?

1154–1155

I suspect we shouldn't use the gradient for either, based on https://github.com/w3c/csswg-drafts/issues/6036#issuecomment-786308318

This revision now requires changes to proceed.Tue, May 26, 5:39 PM
nsharpley updated this revision to Diff 1286748.
nsharpley added a subscriber: mstriemer.
nsharpley added inline comments.
toolkit/themes/shared/design-system/dist/tokens-shared.css
1154–1155

Hmmm. These updated when I ran so I suspect this is coming from Figma. @mstriemer might know better.

I've wrapped the actual style rules that use these values in a media query for not .

dao requested changes to this revision.Mon, Jun 1, 9:06 AM
dao added inline comments.
toolkit/themes/shared/design-system/dist/nova/tokens-figma-theme.json
490

Do we need here given that the usage of the gradient is gated by ? If we do want to set this to be safe, should it use instead of to mirror how it's used? Also, would instead of also do the trick? I had already asked about the latter in https://phabricator.services.mozilla.com/D302057#inline-1635642.

This revision now requires changes to proceed.Mon, Jun 1, 9:06 AM
mkennedy removed a reviewer: mkennedy. mkennedy added 1 blocking reviewer(s): dao.Mon, Jun 1, 1:14 PM
nsharpley updated this revision to Diff 1288664.
nsharpley marked an inline comment as done.
browser/themes/shared/browser-shared.css
337–338

Reverted this requested change due to D301786 landing ahead.

nsharpley updated this revision to Diff 1289482.
nsharpley added inline comments.
toolkit/themes/shared/design-system/dist/nova/tokens-figma-theme.json
490

See below?

toolkit/themes/shared/design-system/dist/tokens-shared.css
1154–1155

@dao Restructured things a bit, so we do use transparent now for . Does this clean things up a bit?

nsharpley retitled this revision from Bug 2027859 - Nova toolbar visual updates r=sthompson to Bug 2027859 - Nova toolbar visual updates r=emilio.
nsharpley marked an inline comment as done.
nsharpley added inline comments.
browser/themes/shared/browser-shared.css
238–241

This somehow snuck in on a rebase and messed up the body background. Removing this fixes bug 2044533.

browser/extensions/newtab/css/activity-stream.css
15536

Probably avoid calling it ? or something more nova-specific?

Also do we need the / tokens since their only use is the gradient and there's only one reference?

browser/themes/shared/browser-shared.css
282

Maybe reword a bit? Something like:

Toolbox background images go either on the `<body>` or on the toolbox itself. For most themes and pre-nova default theme, it goes on the `<body>`. For themes that align the image in the y axis, and the nova default theme, they go on the toolbox.

FIXME(bug XXX): Clean this up by using a more specific attribute or so.

Please file bug XXX to do so and ni? me, I can take a look :)

toolkit/themes/shared/design-system/src/tokens/components/toolbox.nova.tokens.json
14

Do you need this tho? here will be completely unused.

toolkit/themes/shared/design-system/src/tokens/components/toolbox.tokens.json
15

This should either be or or so, so it is also an image. But also maybe you can remove it and just not set if ?

emilio requested changes to this revision.Wed, Jun 3, 3:15 PM
Comment Actions

Tagging request changes so that I know I need to take another look as soon as it's back on the review queue :)

This revision now requires changes to proceed.Wed, Jun 3, 3:15 PM
nsharpley updated this revision to Diff 1290789.
nsharpley marked 3 inline comments as done.
nsharpley added inline comments.
browser/extensions/newtab/css/activity-stream.css
15536

Also do we need the -leading / -trailing tokens since their only use is the gradient and there's only one reference?

We have to keep these variables, named the same, as they are pulled in from Figma. That way if colors are changed in Figma they get updated here too :)

toolkit/themes/shared/design-system/src/tokens/components/toolbox.nova.tokens.json
14

This is imported from Figma. I'll let the Acorn folks know we maybe don't need it and they can update their end / pull those changes in later.

Comment Actions

r=me with those fixes, can look at the follow-up once this is on main. See below, the default gradient variable seems easy to misuse.

browser/extensions/newtab/content-src/styles/nova/_tokens.scss
303

If we could call this or or so it'd be good, to make sure it's not misused.

browser/themes/shared/browser-shared.css
571

I don't think you need this anymore (\o/)

576

too please

nsharpley added inline comments.
browser/extensions/newtab/content-src/styles/nova/_tokens.scss
303

Hmmm. I'd need to do this in the tokens json, but the script trims "nova" so it doesn't work 😞

"nova-nova-gradient": {
 "comment": "This gradient is only used for Nova",
 "value": {
 "default": "linear-gradient(96deg, color-mix({toolbox.background.color.gradient-leading} 50%, transparent) 39.84%, color-mix({toolbox.background.color.gradient-trailing} 50%, transparent) 101.72%)",
 "forcedColors": "image(transparent)"
 }
 }

And I know we are steering away from using "default"

browser/themes/shared/browser-shared.css
571

🎉

nsharpley marked 2 inline comments as done.
This revision is now accepted and ready to land.Wed, Jun 3, 3:59 PM
Comment Actions

Removing Dao as a reviewer since feedback has been addressed and Emilio has approved for desktop theme reviewers.

Revision Contents

PathSize
browser/
extensions/
newtab/
content-src/
styles/
nova/
12 lines
css/
9 lines
nova/
9 lines
themes/
shared/
73 lines
tabbrowser/
1 line
urlbar/
1 line
toolkit/
content/
widgets/
moz-badge/
1 line
themes/
shared/
design-system/
dist/
nova/
10 lines
5 lines
14 lines
src/
tokens/
components/
14 lines
15 lines
CommitTreeParentsAuthorSummaryDate
ae933c480f4225c0c948f67aNikki Sharpley
Bug 2027859 - Nova toolbar visual updates r=desktop-theme-reviewers,emilio (Show More…)

Diff 1290895

browser/extensions/newtab/content-src/styles/nova/_tokens.scss

Loading...

browser/extensions/newtab/css/activity-stream.css

Loading...

browser/extensions/newtab/css/nova/activity-stream.css

Loading...

browser/themes/shared/browser-shared.css

Loading...

browser/themes/shared/tabbrowser/tab.tokens.css

Loading...

browser/themes/shared/urlbar/urlbarview.tokens.css

Loading...

toolkit/content/widgets/moz-badge/moz-badge.tokens.css

Loading...

toolkit/themes/shared/design-system/dist/nova/tokens-figma-theme.json

Loading...

toolkit/themes/shared/design-system/dist/tokens-figma-theme.json

Loading...

toolkit/themes/shared/design-system/dist/tokens-shared.css

Loading...

toolkit/themes/shared/design-system/src/tokens/components/toolbox.nova.tokens.json

Loading...

toolkit/themes/shared/design-system/src/tokens/components/toolbox.tokens.json

Loading...