Commit Graph

294 Commits

Author SHA1 Message Date
Mike Conley
f62fb0b07c Bug 1960560 - Part 2: Add steps for importing passwords manually from Chrome on Windows. r=migration-reviewers,fluent-reviewers,desktop-theme-reviewers,fxview-reviewers,omc-reviewers,Gijs,bolsson,pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D246809
2025-05-09 19:53:22 +00:00
akulyk
11f411c3a9 Bug 1962261 - Fix mocking Services in Storybook preview.mjs r=reusable-components-reviewers,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D246522
2025-04-29 16:17:27 +00:00
Alex Hochheiden
9e91a1f021 Bug 1715287 - [lint] Enable remaining pyupgrade rules and lint tree r=linter-reviewers,webdriver-reviewers,translations-reviewers,whimboo,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D245320
2025-04-13 17:48:23 +00:00
mark
529f05587b Bug 1957988 - Add Storybook upgrade mach command r=reusable-components-reviewers,mstriemer
Adds a new `mach storybook upgrade` command that will forcefully upgrade all Storybook npm dependencies to their highest versions allowed in the package.json by performing the following tasks:

1. Remove the node_modules directory
2. Remove the package-lock.json file
3. Run `npm install`

Differential Revision: https://phabricator.services.mozilla.com/D244775
2025-04-09 17:41:16 +00:00
jules
10292f95c4 Bug 1861526 - Improve our existing color palette r=reusable-components-reviewers,desktop-theme-reviewers,tabbrowser-reviewers,dao,hjones
The new palette makes use of oklch(), a modern function based on cielab color space.
Oklch has bigger gamut support, while being a perceptual and uniform space - easier to create a system with colors that step down evenly.

While oklch gets us pretty far, you will notice if you look close though that all color groups don't follow the same exact lightness and chroma values to a T. I lightly tweaked some color families based on how colors tend to respond to the human eye as they get more or less lightness and chroma.

I will release alongside this palette some minimal guidance of how to combine colors on acorn.firefox.com. This palette provides an easy to understand system where
0 is the lightest and 110 is the darkest, and 1-100 step towards the darkest value evenly. You could then  pretty much split
the scale in half to create light/dark mode safe combinations for background + text, icon + background, etc. But as mentioned before, more guidance to come.

I'm applying colors to tab groups here so made sure to get Amy Lee's approval.

I also ran this by theme reviewers.

UX org has also approved this work.

I also planned with #reusable-components-reviewers team to launch this at the beginning of the next cycle alongside a note to dev mailist announcing the changes.

You should notice some small differences on certain colors, but nothing too dramatic. Colors, besides themes, pretty much only show up as an accent (e.g. primary button) or for feedback (e.g. message bars). Before and after pics can be found [here](https://www.figma.com/design/ZDl1O6w3AA8CC2Keo8ExFg/Bug-1861526-before-and-afters?node-id=0-1&p=f&t=0HeNRoieubFL4ZFl-0).

Note: Storybook isn't playing nicely with oklch and we get some warnings for contrast. I talked to Mark Striemer, and for now we can land this but should look into a solution, if possible. I filed 1950988.

Note to ReComp: I touched up message bar's design slightly here by tweaking the border color.
I also used Julian Gaibler's help to ignore oklch for now since it was spitting errors in the Figma config.

### oklch reads
w3: https://www.w3.org/TR/css-color-4/#lab-colors
tldr: https://chriscoyier.net/2023/10/20/more-oklch-musings/

Differential Revision: https://phabricator.services.mozilla.com/D239079
2025-04-08 00:08:39 +00:00
mark
47be4d7587 Bug 1950988 - Upgrade Storybook dependencies r=reusable-components-reviewers,mstriemer
Upgrades Storybook dependencies to their highest versions allowed in
package-lock.json, which also upgrades `axe-core` to version 4.10.3.

Differential Revision: https://phabricator.services.mozilla.com/D244221
2025-04-03 18:12:10 +00:00
Narcis Beleuzu
80942a3446 Backed out 2 changesets (bug 1861526) for BC failure on browser_ext_themes_autocomplete_popup.js . CLOSED TREE
Backed out changeset 9c86ab21ee32 (bug 1861526)
Backed out changeset ea1bb507b559 (bug 1861526)
2025-04-03 20:48:48 +03:00
jules
50b77ea1be Bug 1861526 - Improve our existing color palette r=reusable-components-reviewers,desktop-theme-reviewers,tabbrowser-reviewers,dao,hjones
The new palette makes use of oklch(), a modern function based on cielab color space.
Oklch has bigger gamut support, while being a perceptual and uniform space - easier to create a system with colors that step down evenly.

While oklch gets us pretty far, you will notice if you look close though that all color groups don't follow the same exact lightness and chroma values to a T. I lightly tweaked some color families based on how colors tend to respond to the human eye as they get more or less lightness and chroma.

I will release alongside this palette some minimal guidance of how to combine colors on acorn.firefox.com. This palette provides an easy to understand system where
0 is the lightest and 110 is the darkest, and 1-100 step towards the darkest value evenly. You could then  pretty much split
the scale in half to create light/dark mode safe combinations for background + text, icon + background, etc. But as mentioned before, more guidance to come.

I'm applying colors to tab groups here so made sure to get Amy Lee's approval.

I also ran this by theme reviewers.

UX org has also approved this work.

I also planned with #reusable-components-reviewers team to launch this at the beginning of the next cycle alongside a note to dev mailist announcing the changes.

You should notice some small differences on certain colors, but nothing too dramatic. Colors, besides themes, pretty much only show up as an accent (e.g. primary button) or for feedback (e.g. message bars). Before and after pics can be found [here](https://www.figma.com/design/ZDl1O6w3AA8CC2Keo8ExFg/Bug-1861526-before-and-afters?node-id=0-1&p=f&t=0HeNRoieubFL4ZFl-0).

Note: Storybook isn't playing nicely with oklch and we get some warnings for contrast. I talked to Mark Striemer, and for now we can land this but should look into a solution, if possible. I filed 1950988.

Note to ReComp: I touched up message bar's design slightly here by tweaking the border color.
I also used Julian Gaibler's help to ignore oklch for now since it was spitting errors in the Figma config.

### oklch reads
w3: https://www.w3.org/TR/css-color-4/#lab-colors
tldr: https://chriscoyier.net/2023/10/20/more-oklch-musings/

Differential Revision: https://phabricator.services.mozilla.com/D239079
2025-04-03 16:20:56 +00:00
Mark Striemer
89873fdff1 Bug 1951831 - Part 2: Stories for setting-{group,control} r=reusable-components-reviewers,settings-reviewers,mossop,hjones
Refactor the setting-group and setting-control a little to support
passing in the Preferences.getSetting function rather pulling it off of
window.

Add basic Storybook stories for setting-group and setting-control.

Differential Revision: https://phabricator.services.mozilla.com/D241130
2025-03-13 01:42:34 +00:00
akulyk
8dd7c78255 Bug 1941432 - Create a basic moz-input-folder element r=reusable-components-reviewers,fluent-reviewers,bolsson,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D237926
2025-03-05 18:05:15 +00:00
Rebecca King
15d22f75bd Bug 1868633 - Use moz-card in the Shopping UI - r=shopping-reviewers,reusable-components-reviewers,desktop-theme-reviewers,hjones,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D232406
2025-01-13 21:22:26 +00:00
Mark Banner
d0718e3c69 Bug 1937739. r=frontend-codestyle-reviewers,perftest-reviewers,mossop,sparky
Differential Revision: https://phabricator.services.mozilla.com/D232598
2024-12-19 17:05:08 +00:00
Logan Rosen
d24c9d9ff4 Bug 1857834 - auto-formatting with Prettier v3 r=linter-reviewers,webdriver-reviewers,perftest-reviewers,search-reviewers,devtools-reviewers,sync-reviewers,reusable-components-reviewers,profiler-reviewers,dom-storage-reviewers,android-reviewers,firefox-ai-ml-reviewers,hjones,mcheang,mstange,sparky,janv,nchevobbe,tarek,Standard8,markh
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D230598
2024-11-29 15:18:25 +00:00
Mark Striemer
fab35fa7e3 Bug 1900122 - Part 1: Standardise mapped attributes with mapped:true Lit properties r=reusable-components-reviewers,hjones
Differential Revision: https://phabricator.services.mozilla.com/D221891
2024-10-17 02:32:41 +00:00
Mike Conley
dd4373aecb Bug 1920799 - Add a new messaging surface to the AppMenu and PXI menus for describing the value of signing into an FxA. r=pdahiya,Gijs,desktop-theme-reviewers,omc-reviewers,home-newtab-reviewers,fluent-reviewers,hjones,skhamis,nbarrett
Developing tests in a later patch in this series.

Differential Revision: https://phabricator.services.mozilla.com/D223409
2024-10-15 16:15:09 +00:00
Sidharth Sachdev
f99cdcff23 Bug 1911121 - Create a LoginForm Component for Contextual Password Manager. r=fluent-reviewers,desktop-theme-reviewers,bolsson,hjones,issammani,ayeddi,dao,accessibility-frontend-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D218341
2024-09-14 15:27:32 +00:00
Hanna Jones
29258bedd7 Bug 1901572 - auto import moz- custom elements in Storybook r=reusable-components-reviewers,mstriemer
We've allowed for auto importing moz- custom elements since Bug 1803678. This means that often custom elements will use moz- elements without explicitly importing them. This sometimes causes problems in Storybook, since the auto import logic doesn't apply there, and as of Storybook v7 all stories are lazily compiled. This patch ensures that we load all moz- elements and other reusable components up front to avoid display issues in domain specific component stories.

Differential Revision: https://phabricator.services.mozilla.com/D221702
2024-09-10 20:13:02 +00:00
Mark Banner
ea82bec0f5 Bug 1916093 - Enable more documentation generation warnings as fatal. r=sylvestre,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D220766
2024-09-03 18:48:46 +00:00
kpatenio
6be27e8fff Bug 1914057 - hide sponsor label if served recommendations in review checker. r=shopping-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D219935
2024-08-27 18:38:48 +00:00
kpatenio
263dc34615 Bug 1914057 - update strings for review checker recommendations and settings, plus other minor UX changes. r=fluent-reviewers,shopping-reviewers,bolsson,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D219791
2024-08-27 18:38:47 +00:00
Stanca Serban
ef505e2fa5 Backed out 3 changesets (bug 1914057) for causing mochitests failures in browser_recommended_ad_test.js. CLOSED TREE
Backed out changeset 9d215f25967c (bug 1914057)
Backed out changeset 4105f16f245b (bug 1914057)
Backed out changeset 873a53c675ba (bug 1914057)
2024-08-27 01:59:48 +03:00
kpatenio
37c6ca0c59 Bug 1914057 - hide sponsor label if served recommendations in review checker. r=shopping-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D219935
2024-08-26 21:52:19 +00:00
kpatenio
c008efa598 Bug 1914057 - update strings for review checker recommendations and settings, plus other minor UX changes. r=fluent-reviewers,shopping-reviewers,bolsson,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D219791
2024-08-26 21:52:19 +00:00
Stuart Colville
67cd79d978 Bug 1912562 - add autofocus to searchbox component and use in sidebar history and synctabs r=sidebar-reviewers,fxview-reviewers,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D219617
2024-08-21 12:33:17 +00:00
Cieara Meador
25cd9380db Bug 1858998 - Add global color theme switcher to Storybook r=reusable-components-reviewers,cmkm,hjones
Differential Revision: https://phabricator.services.mozilla.com/D208413
2024-07-11 18:02:19 +00:00
Louis Mascari
637385fd6b Bug 1905975 - Remove the old button story in Storybook. r=tgiles
Differential Revision: https://phabricator.services.mozilla.com/D216069
2024-07-09 18:46:43 +00:00
isaacylee
70cb112052 Bug 1901573 - The fxview-tab-list stories do not correctly render the meatball button. r=nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D215689
2024-07-09 14:25:27 +00:00
Mark Striemer
0ff35eb22d Bug 1901336 - Support generating data-l10n-attrs based on reactive property definition in MozLitElement r=reusable-components-reviewers,hjones
Differential Revision: https://phabricator.services.mozilla.com/D213329
2024-06-19 18:37:36 +00:00
Sandor Molnar
34e807bc63 Backed out 5 changesets (bug 1897529, bug 1901336, bug 1900126) for causing bc failures @ browser_a11y_sidebar.js CLOSED TREE
Backed out changeset 334b820a4c19 (bug 1897529)
Backed out changeset 70350abadcba (bug 1900126)
Backed out changeset 3d631de2ce01 (bug 1897529)
Backed out changeset 1d654154d5ea (bug 1897529)
Backed out changeset a8f7b541a548 (bug 1901336)
2024-06-14 22:41:48 +03:00
Mark Striemer
d109128d95 Bug 1901336 - Support generating data-l10n-attrs based on reactive property definition in MozLitElement r=reusable-components-reviewers,hjones
Differential Revision: https://phabricator.services.mozilla.com/D213329
2024-06-14 18:18:18 +00:00
Tamas Szentpeteri
7b9a55f977 Backed out 4 changesets (bug 1900126, bug 1897529, bug 1901336) for causing mochitest failures on test_moz_message_bar.html. CLOSED TREE
Backed out changeset 212bac58cc17 (bug 1900126)
Backed out changeset efaba56826e3 (bug 1897529)
Backed out changeset 9c52e2ac9df2 (bug 1897529)
Backed out changeset fc94dfe91c29 (bug 1901336)
2024-06-14 06:09:39 +03:00
Mark Striemer
41c6b349d4 Bug 1901336 - Support generating data-l10n-attrs based on reactive property definition in MozLitElement r=reusable-components-reviewers,hjones
Differential Revision: https://phabricator.services.mozilla.com/D213329
2024-06-13 21:52:52 +00:00
Mark Striemer
e6dff4fa84 Bug 1896837 - Only sync import widget modules after DOMContentLoaded r=reusable-components-reviewers,settings-reviewers,mconley,hjones
Co-author/investigator: Tim Giles <tgiles@mozilla.com>

Delay sychronous loading of ESM based custom elements until the
DOMContentLoaded event. With D212190--which this patch depends on--the
components that have already been used on the page will be synchronously
loaded when customElements.setElementCreationCallback is registered.

Differential Revision: https://phabricator.services.mozilla.com/D212191
2024-06-04 23:18:01 +00:00
Hanna Jones
dcb0c96a69 Bug 1894499 - Implement base moz-radio and moz-radio-group r=reusable-components-reviewers,desktop-theme-reviewers,accessibility-frontend-reviewers,tgiles,dao,nlapre
This is just a basic implementation of our proposed `moz-radio` and `moz-radio` group elements.

Differential Revision: https://phabricator.services.mozilla.com/D209983
2024-05-31 22:23:14 +00:00
Jonathan Sudiaman
8dec778c2c Bug 1859774 - Add new Firefox View search component to Storybook r=kcochrane,fluent-reviewers,fxview-reviewers,reusable-components-reviewers,hjones
Simplified debouncing logic to avoid depending on DeferredTask. Add missing `aria-label` which is needed for the edge case of showing a search box without placeholder.

Differential Revision: https://phabricator.services.mozilla.com/D210701
2024-05-24 20:32:56 +00:00
Norisz Fay
f646873f96 Backed out changeset 223f467f78df (bug 1859774) for causing mochitest failures on test_fxview_search_textbox.html CLOSED TREE 2024-05-24 19:04:17 +03:00
Jonathan Sudiaman
dec03dc0a3 Bug 1859774 - Add new Firefox View search component to Storybook r=kcochrane,fluent-reviewers,fxview-reviewers,reusable-components-reviewers,hjones
Simplified debouncing logic to avoid depending on DeferredTask. Add missing `aria-label` which is needed for the edge case of showing a search box without placeholder.

Differential Revision: https://phabricator.services.mozilla.com/D210701
2024-05-24 15:16:26 +00:00
Sandor Molnar
a92ccd5e4d Backed out changeset 56007d13fdf6 (bug 1859774) for causing mochitest failures @ browser/components/firefoxview/tests/chrome/test_fxview_search_textbox.html CLOSED TREE 2024-05-24 00:46:06 +03:00
Jonathan Sudiaman
37a0386948 Bug 1859774 - Add new Firefox View search component to Storybook r=kcochrane,fluent-reviewers,fxview-reviewers,reusable-components-reviewers,hjones
Simplified debouncing logic to avoid depending on DeferredTask. Add missing `aria-label` which is needed for the edge case of showing a search box without placeholder.

Differential Revision: https://phabricator.services.mozilla.com/D210701
2024-05-23 20:20:03 +00:00
Gijs Kruitbosch
d4ea70da14 Bug 1895692 - turn off import/no-unassigned-import for storybook files, r=reusable-components-reviewers,frontend-codestyle-reviewers,hjones
Differential Revision: https://phabricator.services.mozilla.com/D210475
2024-05-15 16:08:57 +00:00
Mark Striemer
a069b9cdf1 Bug 1895944 - Fix moz-label webpack config in Storybook r=reusable-components-reviewers,hjones
Differential Revision: https://phabricator.services.mozilla.com/D209968
2024-05-13 21:08:36 +00:00
Mike Conley
5b979dc884 Bug 1893269 - Build out basic infrastructure for backup management UI. r=backup-reviewers,settings-reviewers,firefox-desktop-core-reviewers ,Gijs,fluent-reviewers,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D209161
2024-05-09 21:34:35 +00:00
Tim Giles
604b3381af Bug 1893685 - Add link to the "Reusable Component Adoption" site in docs. r=reusable-components-reviewers,jules DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D208772
2024-04-26 17:54:16 +00:00
Hanna Jones
21849b1def Bug 1803678 - enable lazy loading of ESModule based moz- custom elements r=reusable-components-reviewers,pip-reviewers,credential-management-reviewers,translations-reviewers,kpatenio,issammani,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D207445
2024-04-24 19:16:46 +00:00
Stanca Serban
29d6ee2faf Backed out changeset 58e1e96263b7 (bug 1803678) mochitests failures in test_confirm_delete_dialog.html. CLOSED TREE 2024-04-24 03:14:45 +03:00
Jonathan Sudiaman
a1780ebc7d Bug 1867614 - fxview-tab-list story is broken, shows a "ChromeUtils is not defined" error r=fxview-reviewers,reusable-components-reviewers,hjones,nsharpley
Remove transitive dependency on `ChromeUtils` that is causing this error.

Differential Revision: https://phabricator.services.mozilla.com/D208380
2024-04-23 21:26:09 +00:00
Hanna Jones
9413513b0d Bug 1803678 - enable lazy loading of ESModule based moz- custom elements r=reusable-components-reviewers,pip-reviewers,credential-management-reviewers,translations-reviewers,kpatenio,issammani,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D207445
2024-04-23 19:28:47 +00:00
Aron Cseh
08943f7f60 Backed out changeset 421fd8a0360c (bug 1803678) for causing mochitest failures on browser_translations_select_panel_init_failure.js CLOSED TREE 2024-04-23 18:16:55 +03:00
Hanna Jones
cf0399a238 Bug 1803678 - enable lazy loading of ESModule based moz- custom elements r=reusable-components-reviewers,pip-reviewers,credential-management-reviewers,translations-reviewers,kpatenio,issammani,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D207445
2024-04-23 13:52:27 +00:00
Hanna Jones
07e447494b Bug 1855471 - Replace last <message-bar> instances with <div>s r=shopping-reviewers,Gijs
The `<shopping-message-bar>` component is the last place we're using the deprecated `<message-bar>` component. As such, it's the one thing standing preventing us from remvoing the old `<message-bar>` implementation (see Bug 1845151). I took a quick look and the `<message-bar>`s here aren't actually providing any styling/layout and seem to be easily replacable with `<div>`s.

Differential Revision: https://phabricator.services.mozilla.com/D207989
2024-04-22 18:06:17 +00:00