VOOZH about

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

⇱ ⚙ D303488 Bug 2023763 - Nova styles for application menu r=mstriemer


Bug 2023763 - Nova styles for application menu r=mstriemer
ClosedPublic

Authored by nsharpley on Fri, May 29, 8:02 PM.
Referenced Files
F72914952: D303488.1781786458.diff
Wed, Jun 17, 12:40 PM
F72897643: D303488.1781765578.diff
Wed, Jun 17, 6:52 AM
F72896105: D303488.1781763606.diff
Wed, Jun 17, 6:20 AM
F72881738: D303488.1781746033.diff
Wed, Jun 17, 1:27 AM
Unknown Object (File)
Tue, Jun 16, 10:15 PM
Unknown Object (File)
Tue, Jun 16, 9:45 PM
Unknown Object (File)
Tue, Jun 16, 8:30 PM
Unknown Object (File)
Tue, Jun 16, 8:27 PM

Details

Summary
  • switched to moz-button for sign in
  • the "zap" gradient under the account menu item is different
  • new colored box with new styling for update message and the "switching to a new device" menu item under "Help"

You can see these changes by visiting the application menu, and navigating to Help for the last point

Diff Detail

Event Timeline

nsharpley created this revision.
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".Fri, May 29, 8:02 PM
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.
nsharpley updated this revision to Diff 1292487.
Comment Actions

Code analysis found 4 defects in diff 1292487:

  • 1 defect found by eslint (Mozlint)
  • 1 defect found by fluent-lint (Mozlint)
  • 2 defects found by stylelint (Mozlint)
IMPORTANT: Found 4 defects (error level) that must be fixed before landing.

You can run this analysis locally with:


If you see a problem in this automated review, please report it here.

You can view these defects in the Diff Detail section of Phabricator diff 1292487.

nsharpley updated this revision to Diff 1293871.
Comment Actions

Code analysis found 6 defects in diff 1293871:

  • 1 defect found by stylelint (Mozlint)
  • 2 defects found by fluent-lint (Mozlint)
  • 3 defects found by eslint (Mozlint)
IMPORTANT: Found 6 defects (error level) that must be fixed before landing.

You can run this analysis locally with:


If you see a problem in this automated review, please report it here.

You can view these defects in the Diff Detail section of Phabricator diff 1293871.

nsharpley updated this revision to Diff 1295278.
nsharpley updated this revision to Diff 1295398.
nsharpley retitled this revision from WIP: Bug 2023763 - Nova styles for application menu to Bug 2023763 - Nova styles for application menu r=mstriemer.
nsharpley added a reviewer: mstriemer.
Comment Actions

I've named some elements that have a Nova variant with "nova" though I am wondering if that's a good idea since it would require a rename when we eventually default to Nova and remove old styling... Thoughts?

bolsson requested changes to this revision.Tue, Jun 9, 5:25 PM
bolsson added a subscriber: bolsson.
bolsson added inline comments.
browser/locales/en-US/browser/appmenu.ftl
22–23

We should have a comment for localizers indicating what a "Fresh Firefox" is referring to (e.g. a "Fresh Firefox refers to the new updated UI")

This revision now requires changes to proceed.Tue, Jun 9, 5:25 PM
nsharpley updated this revision to Diff 1295604.
nsharpley edited the summary of this revision. (Show Details)
Comment Actions

Sorry I approved it accidentally thinking it was another patch I had open - will take a closer look

Comment Actions

Seems pretty close but a found a few issues

browser/base/content/appmenu-viewcache.inc.xhtml
33–34

s emit events but XUL and elements emitted events

This button doesn't work for me anymore

I also happened to be signed in when I tested this and it looks a little odd

browser/themes/shared/customizableui/panelUI-shared.css
67–69

This feels unfortunate. We should probably set up correctly instead

There is a and it could get this added to it:

"separator": {
 "color": {
 "value": {
 "default": "color-mix(in srgb, currentColor 25%, transparent)",
 "prefersContrast": "currentColor"
 }
 }
},

And then we can delete the current definitions: https://searchfox.org/firefox-main/search?q=--panel-separator-color&path=&case=false&regexp=false

Running buildtokens should get the Figma value for Nova

751–753

I think the linter was pointing out a real error

toolkit/content/widgets/moz-promo/moz-promo.css
67

We refer to this as an image for the src and size, so I think we should be consistent

toolkit/themes/shared/design-system/src/tokens/components/icon.tokens.json
12–13

nitpick: whitespace

This revision now requires changes to proceed.Tue, Jun 9, 8:17 PM
nsharpley updated this revision to Diff 1296334.
nsharpley marked 4 inline comments as done.
nsharpley marked an inline comment as done.
Comment Actions

lgtm for newtab changes!

mstriemer added a project: testing-approved.
Comment Actions

Looks great, thanks!

browser/themes/shared/customizableui/panelUI-shared.css
586

I think this needs the margin not the padding from the menuitems

toolkit/themes/shared/design-system/src/figma-import.mjs
27 ↗(On Diff #1296493)

All of the widgets are being imported now rather than the specifically listed components. If you delete this and run you should be able to cleanly rebase onto main. I think another buildtokens at that point shouldn't have any changes

This revision is now accepted and ready to land.Fri, Jun 12, 6:11 PM
This revision is now accepted and ready to land.Mon, Jun 15, 1:45 PM

Revision Contents

PathSize
browser/
base/
content/
16 lines
26 lines
test/
sync/
2 lines
50 lines
components/
customizableui/
content/
72 lines
test/
4 lines
76 lines
126 lines
extensions/
newtab/
content-src/
styles/
nova/
4 lines
css/
4 lines
nova/
4 lines
locales/
en-US/
browser/
13 lines
themes/
shared/
customizableui/
63 lines
toolkit/
content/
widgets/
moz-promo/
2 lines
themes/
shared/
design-system/
dist/
nova/
10 lines
11 lines
5 lines
8 lines
11 lines
src/
tokens/
components/
11 lines
8 lines
9 lines
8 lines
6 lines
CommitTreeParentsAuthorSummaryDate
16e8802bf561f3748f8a96a7Nikki Sharpley
Bug 2023763 - Nova styles for application menu r=mstriemer,fluent-reviewers… (Show More…)

Diff 1300329

browser/base/content/appmenu-viewcache.inc.xhtml

Loading...

browser/base/content/browser-sync.js

Loading...

browser/base/content/test/sync/browser.toml

Loading...

browser/base/content/test/sync/browser_appmenu_nova_fxa_label_signin.js

Loading...

browser/components/customizableui/content/panelUI.js

Loading...

browser/components/customizableui/test/browser.toml

Loading...

browser/components/customizableui/test/browser_novaHelpSwitchDevicePromo.js

Loading...

browser/components/customizableui/test/browser_panelUINotifications_novaUpdatePromo.js

Loading...

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/locales/en-US/browser/appmenu.ftl

Loading...

browser/themes/shared/customizableui/panelUI-shared.css

Loading...

toolkit/content/widgets/moz-promo/moz-promo.css

Loading...

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

Loading...

toolkit/themes/shared/design-system/dist/semantic-categories.mjs

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/dist/tokens-table.mjs

Loading...

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

Loading...

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

Loading...

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

Loading...

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

Loading...

toolkit/themes/shared/global-shared.css

Loading...